Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaRajSingh committed Jan 30, 2023
1 parent f212a56 commit a5d05c8
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 62 deletions.
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## UniCache v2.0.0
- Republished package under @truesparrow

## UniCache v1.0.0
- First release of UniCache having support for 3 caching engines - Memcached, Redis and In-memory Cache
- Test case coverage improved to 95%.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Helping hands are always welcome to contribute with bug fixes and enhancements t
which you observe while integrating UniCache in your project.

## How to Report Issues
To report an issue, please use the [Github issues tracker](https://github.com/PLG-Works/UniCache/issues). When reporting issues,
To report an issue, please use the [Github issues tracker](https://github.com/TrueSparrowSystems/UniCache/issues). When reporting issues,
please mention the following details, whichever applicable:
- Steps to reproduce with sample snippets.
- Actual vs. expected behaviour.
Expand Down
4 changes: 2 additions & 2 deletions InstanceComposer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Instance Composer from @TrueSparrowSystems/base
* Instance Composer from @truesparrow/base
*
* @module instance_composer
*/

const Base = require('@TrueSparrowSystems/base');
const Base = require('@truesparrow/base');

module.exports = Base.InstanceComposer;
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright © 2022 PLG Works
Copyright © 2022 True Sparrow Systems Pvt. Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ npm run test
## Contribution
We welcome more helping hands to make UniCache better. Feel free to report issues, raise PRs for fixes & enhancements.

<p align="left">Built with :heart: by <a href="https://plgworks.com/" target="_blank">PLG Works</a></p>
<p align="left">Built with :heart: by <a href="https://truesparrow.com/" target="_blank">True Sparrow</a></p>
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
2.0.0
2 changes: 1 addition & 1 deletion config/cache.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Base = require('@TrueSparrowSystems/base');
const Base = require('@truesparrow/base');

const rootPrefix = '..',
coreConstants = require(rootPrefix + '/config/coreConstant');
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Index File for @TrueSparrowSystems/cache
* Index File for @truesparrow/cache
*/

const Base = require('@TrueSparrowSystems/base');
const Base = require('@truesparrow/base');

const rootPrefix = '.',
version = require(rootPrefix + '/package.json').version,
Expand Down
2 changes: 1 addition & 1 deletion lib/existingInstance.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This is to share the instance map between multiple @TrueSparrowSystems/cache objects.
// This is to share the instance map between multiple @truesparrow/cache objects.

module.exports = {};
2 changes: 1 addition & 1 deletion lib/formatter/response.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Base = require('@TrueSparrowSystems/base'),
const Base = require('@truesparrow/base'),
responseHelper = new Base.responseHelper({ moduleName: 'CustomCache' });

module.exports = responseHelper;
2 changes: 1 addition & 1 deletion lib/implementer/InMemory.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @module lib/implementer/InMemory
*/

const Base = require('@TrueSparrowSystems/base');
const Base = require('@truesparrow/base');

const rootPrefix = '../..',
cacheHelper = require(rootPrefix + '/lib/helper'),
Expand Down
4 changes: 2 additions & 2 deletions lib/implementer/Memcached.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

const Memcached = require('memcached'),
Base = require('@TrueSparrowSystems/base');
Base = require('@truesparrow/base');

const rootPrefix = '../..',
cacheHelper = require(rootPrefix + '/lib/helper'),
Expand Down Expand Up @@ -107,7 +107,7 @@ class MemcachedCacheImplementer {
oThis._isConsistentBehaviour = isConsistentBehaviour;

// First time cache set was intermittently failing for memcached, thus setting test key here.
oThis.set('plgInit', 1);
oThis.set('tsInit', 1);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/implementer/Redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @module lib/implementer/Redis
*/

const Base = require('@TrueSparrowSystems/base'),
const Base = require('@truesparrow/base'),
redis = require('redis');

const rootPrefix = '../..',
Expand Down
2 changes: 1 addition & 1 deletion lib/logger/customConsoleLogger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Base = require('@TrueSparrowSystems/base');
const Base = require('@truesparrow/base');

const rootPrefix = '../..',
coreConstants = require(rootPrefix + '/config/coreConstant');
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@TrueSparrowSystems/unicache",
"version": "1.0.0",
"name": "@truesparrow/unicache",
"version": "2.0.0",
"description": "UniCache is an NPM package that provides singleton interface and behavior for Memcached, Redis and In-memory caching. Easily interact or switch between them in minutes!",
"main": "index.js",
"scripts": {
Expand All @@ -10,7 +10,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/PLG-Works/UniCache.git"
"url": "https://github.com/TrueSparrowSystems/UniCache.git"
},
"keywords": [
"UniCache",
Expand All @@ -21,16 +21,16 @@
"opensource",
"caching"
],
"author": "PLG Works",
"author": "True Sparrow",
"license": "MIT",
"bugs": {
"url": "https://github.com/PLG-Works/UniCache/issues"
"url": "https://github.com/TrueSparrowSystems/UniCache/issues"
},
"homepage": "https://github.com/PLG-Works/UniCache#readme",
"homepage": "https://github.com/TrueSparrowSystems/UniCache#readme",
"dependencies": {
"memcached": "2.2.2",
"redis": "3.1.1",
"@TrueSparrowSystems/base": "^1.0.0"
"@truesparrow/base": "^2.0.0"
},
"devDependencies": {
"chai": "4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion services/CacheInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @module services/CacheInstance
*/

const Base = require('@TrueSparrowSystems/base');
const Base = require('@truesparrow/base');

const rootPrefix = '..',
coreConstants = require(rootPrefix + '/config/coreConstant'),
Expand Down

0 comments on commit a5d05c8

Please sign in to comment.