Skip to content

Commit

Permalink
Merge pull request #17 from TrueSparrowSystems/branding-changes
Browse files Browse the repository at this point in the history
Branding changes
  • Loading branch information
kedarchandrayan authored Jan 30, 2023
2 parents 6bfa643 + a5d05c8 commit 4719829
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 65 deletions.
37 changes: 0 additions & 37 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 @plgworks/base
* Instance Composer from @truesparrow/base
*
* @module instance_composer
*/

const Base = require('@plgworks/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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![UniCache logo Dark](https://user-images.githubusercontent.com/7627517/195535780-47906a3b-c302-4c59-bb1e-d171914ff1bd.png)

[![Latest version](https://img.shields.io/npm/v/@plgworks/unicache.svg?maxAge=3600)][npm]
[![Latest version](https://img.shields.io/npm/v/@truesparrow/unicache.svg?maxAge=3600)][npm]

[npm]: https://www.npmjs.com/package/@plgworks/unicache
[npm]: https://www.npmjs.com/package/@truesparrow/unicache

UniCache is an open-source NPM package that provides unified / singleton interface and behavior for [Memcached](https://memcached.org/),
[Redis](https://redis.io/docs/) and In-memory caching. Easily interact or switch between them in minutes!
Expand All @@ -29,7 +29,7 @@ Follow the installation guides to get the caching engines of your choice, up and

## Install NPM
```shell script
npm install @plgworks/unicache --save
npm install @truesparrow/unicache --save
```

## Initialize
Expand All @@ -39,7 +39,7 @@ Example snippet for the UniCache singleton object initialization is given below.
```js
// Include the following snippet in a separate file, which can be required all accross the code to get unicache instance.
// If using different caching engines simultaneously in a single codebase, have different files for each.
const UniCache = require('@plgworks/unicache');
const UniCache = require('@truesparrow/unicache');

const configStrategy = {
engine: "none/redis/memcached",
Expand Down 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('@plgworks/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 @plgworks/cache
* Index File for @truesparrow/cache
*/

const Base = require('@plgworks/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 @plgworks/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('@plgworks/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('@plgworks/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('@plgworks/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('@plgworks/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('@plgworks/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": "@plgworks/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",
"@plgworks/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('@plgworks/base');
const Base = require('@truesparrow/base');

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

0 comments on commit 4719829

Please sign in to comment.