- minor bug fixes and performance improvements
- adds function overload definition for
get
asget(key: string): Promise<T|undefined>
- improves efficiency by combining multiple commands into one
multi
command - fixes code smells
- replace the entire array when an array is present in the set command
- removes all
<set|del|rewrite|incr>T
methods and integrates transaction within<set|del|rewrite|incr>
method itself
- supports empty string as pre-fixes
- adds
.incr()
&.incrT()
methods to allow incrementing of values usinghincrbyfloat
.
- fixes #14, wherein when any prop was
set(id, {})
on an empty object, it wasn't reflected whenget()
was called on it
- adds support for transactions via
setT
,delT
&rewriteT
methods rewrite
method now support expiry. Please check the API docs for more details
- adds
.del()
method
clearAll()
now scans the DB viascan
command(with a COUNT 100), instead of getting all the prefixed keys viakeys
command which would block the DB if the list is huge- Now allows fetching of internal fields as well ->
jsonCache.get('test', 'name', 'address', 'cars.0')
- Improves documentation
- fixes a bug, if the key contains '/.' in it, then it was being misinterpreted during retrieval of data from DB
- adds more test cases for robustness
- seggregates test cases for better readability
- Total rewrite of the library for better maintenance and performance improvement
- Provides extension for custom types, which allows the users to defines how the custom object has to be stored in Redis and how to revive the same back from redis
- Now provide type support, which means that the type of data use save in jsonCache is exactly(===) the same that you get back
- Now supports
redis
client - Improves efficiency by replacing
.call
with.bind
while initializing internal redisClient - fixes #7
- removes the support for browsers (I know it was stupid for this library 😭)
- Now supports
.
(Dot) in object property (Ex. {'a.b': 'c'})
- Usage of typescript
- Better seggregation of files
- Bug fix for handling empty object and empty array
- Support for querying only the required fields of the object
- Added
clearAll
method, which clears all the cached Json
- Support for redis prefix keys
- Support for key expiry
- Changed callbacks to native Promises
- required node version > 7.0.0
resave
has been renamed torewrite