1.0.4 • Published 5 years ago

@enumatech/hybrid-cache v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Hybrid-Cache

CircleCI

This NodeJS module implements a hybrid cache: a fast, in-process memory cache, backed by Redis pub-sub for invalidation. Note that no data is actually being stored in Redis.

In-memory caches are more efficient than Redis since no round-trip is necessary to access the data. However, when data changes, each copy of the cached data in all processes must be deleted, not just in the process that changes the data. Hybrid Cache uses Redis pub-sub to notify all caches in all processes of these data changes.

Installation

nmp install @enumatech/hybrid-cache

Running tests

npm install
npm test

The MIT License

Copyright 2018 Enuma Technologies Limited.

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago