You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UniCache is an NPM package that provides singleton interface and behavior for [Memcached](https://memcached.org/), [Redis](https://redis.io/docs/) and
8
-
In-memory caching. Easily interact or switch between them in minutes!
7
+
UniCache is an open-source NPM package that provides unified / singleton interface and behavior for [Memcached](https://memcached.org/),
8
+
[Redis](https://redis.io/docs/) and In-memory caching. Easily interact or switch between them in minutes!
9
9
10
10
## Why UniCache?
11
-
- UniCache abstracts the unnecessary deviations between the base packages, in turn helping you learn about and interact with 3 different caching engines (Memcached, Redis and In-memory) all at once.
11
+
- UniCache abstracts the unnecessary deviations between the base NPM packages of Memcached and Redis, in turn helping you
12
+
learn about and interact with 3 different caching engines (Memcached, Redis and In-memory) all at once.
12
13
- Singleton interface of UniCache is not only compatible with Memcached and Redis but also for In-Memory cache.
13
-
- If your backend is interacting with multiple caching engines, UniCache helps developers to reduce translation layer for input and output - thus reducing development time and effort.
14
-
- When using multiple caching engines simultaneously or want to switch between them, consistent output from UniCache will help in faster development. Even exceptions are given out consistently.
15
-
- Be rest assured that your code will not need any further changes in order to use the upcoming base NPM package versions. UniCache will take care of it.
14
+
- If your backend is interacting with multiple caching engines, UniCache helps developers to reduce translation layer
15
+
for input and output - thus reducing development time and effort. Even exceptions are given out consistently.
16
+
- When using multiple caching engines simultaneously or want to switch between them, consistent output from UniCache
17
+
will help in faster development.
18
+
- Be rest assured that your code will not need any further changes in order to use the upcoming base NPM package versions.
19
+
UniCache will take care of it.
16
20
- UniCache is thoroughly tested and is fully compatible with AWS ElastiCache for Redis and AWS ElastiCache for Memcached.
While using the package, create a singleton object of UniCache and then use it across the application. Example snippet for the UniCache singleton object is given below.
36
+
While using the package, create a singleton object of UniCache for each caching engines and then use it across the application.
37
+
Example snippet for the UniCache singleton object initialization is given below.
33
38
34
39
```js
35
40
// Include the following snippet in a separate file, which can be required all accross the code to get unicache instance.
@@ -49,14 +54,14 @@ The singleton object can be used as given below.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@plgworks/unicache",
3
-
"version": "1.0.0-beta.1",
3
+
"version": "1.0.0",
4
4
"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!",
0 commit comments