Jonathan
a29be318f3
Add Promise support when using cache.wrap
9 years ago
Jonathan Muller
b579f8acb7
Stores can override isCacheableValue + tests
This is usefull ie for redis cache where null is returned when cache data does not exists
In other stores, null can still be stored and undefined used when data does not exist
Each store can implement its own custom method
10 years ago
Bryan Donovan
a3387fe439
removing more ttl integer calls from tests, filling in missing tests, removing obsolete tests.
10 years ago
Bryan Donovan
a9a0a3d203
requiring options arg to be accepted in underlying cache stores instead of handling ttl ints and options. Removed deprecated methods.
10 years ago
Bryan Donovan
a5138b7388
adding jsdocs support
10 years ago
Bryan Donovan
7e38ff285c
Cache falsey values by default, allow users to specify what to cache
10 years ago
Bryan Donovan
c2eac33895
refactored redis example store, added ttl function to caching.js
10 years ago
Bryan Donovan
29c76151ca
example updates
10 years ago
Bryan Donovan
1e8f67821e
hiding queues inside CallbackFiller
10 years ago
Bryan Donovan
3b127c2c9f
reluctantly converting to camelcase
10 years ago
Bryan Donovan
5bcc45fc6b
extracting CallbackFiller class
10 years ago
Sean Cady
3f4389c869
Updated options in caching to replace t/l object. Added more test cases.
10 years ago
Bryan Donovan
20092c3505
better solution for #21 . Thanks @aletorrado
10 years ago
Bryan Donovan
c9cd977340
wrapping callbacks in process.nextTick - seems to fix #21
10 years ago
Sean Cady
6249034237
Relaxing JSHint options for "too many parameters" Not sure the best way to handle this for option parameters, such as options
10 years ago
Sean Cady
0af1535383
Added Options capability to Get, Set, and Delete. This can be used to pass additional parameters to the cache services.
10 years ago
Bryan Donovan
4e3fb2c5ed
jscs update
10 years ago
Alejandro Torrado
7bd7e9e6ed
Run wrap callback function in original domain
10 years ago
Alejandro Torrado
812c353a42
Capture work function exceptions and fill callbacks accordingly
10 years ago
Alejandro Torrado
80f2318638
Lint fixes
10 years ago
Alejandro Torrado
46459ff1a7
Moved cache queue before of the store get function
10 years ago
Bryan Donovan
7d01586706
adding JSCS
10 years ago
nguyenchr
cca63f92d1
Allow ttl to be passed into wrap()
10 years ago
Bryan Donovan
d38e274a30
checking for existence of del() method before binding to it
10 years ago
Elliott Foster
c0d907cbd1
Callback with only error if it exists.
10 years ago
Elliott Foster
8c82266887
Call back on set errors too.
10 years ago
Elliott Foster
1e5cd0f935
Execute queued callbacks on error.
10 years ago
Elliott Foster
e0c011dfcf
Use call instead of apply for cached results.
10 years ago
Bryan Donovan
cf442ab47d
Fixing parallel wrapped function calls - issue #8
11 years ago
Bryan Donovan
a1c2b654f8
WIP: working on fixing parallel requests issue
11 years ago
Evan Lucas
59e5a0188c
Expose setex if exists and is a function
This allows us to use the cache store with a ttl on some transactions,
but not all.
11 years ago
Bryan Donovan
bff664192e
adding caching.keys() function (issue #6 )
11 years ago
Bryan Donovan
30678a1684
adding reset() function for issue #5
11 years ago
James
afc70d8cd5
new arg to ignore cache errors. if set cache errors will be ignored and the cache_manager will go to the backing store
11 years ago
Boyan Rabchev
47ea588810
Bound the get, set and del functions to their original “this” context when assigning a store.
11 years ago
Bryan Donovan
0ae7a2b42b
release 0.0.3
12 years ago
Bryan Donovan
275bcb00f4
testing that we can pass in a a store module
12 years ago
Bryan Donovan
204a712103
0.0.1 release
12 years ago
Bryan Donovan
2a51739456
changing "run()" to "wrap()", allowing us to pass in our own custom store.
12 years ago
Bryan Donovan
eeb9f7f751
initial implementation
12 years ago