Konstantin Pogorelov
268876a21a
add multi_caching.reset()
8 years ago
Bryan Donovan
4e812963ae
check that waiting queue exists before calling forEach on it ( #69 )
9 years ago
Sidhartha Chatterjee
d6f8c67580
Allow passing in a promise dependency
9 years ago
theorm
e9c4f0af2a
Fixed triggering callback in wrap after it was queued
9 years ago
Bryan Donovan
267862be72
checking if Promise is defined before trying to use it
9 years ago
Bryan Donovan
a4b9ca7140
minor fixes in memory store for promise support
9 years ago
Bryan Donovan
f85538f0e4
support noPromises option in memory store ( #46 )
9 years ago
Bryan Donovan
38f631fb02
no need for "self" in CallbackFiller now
9 years ago
Bryan Donovan
d7bfb6132e
removing domain error catching from caching/multi-caching
9 years ago
Bryan Donovan
ec114bcb74
passing ttl of 0 to lruCache, upgrading to lru-cache 4.0.0
9 years ago
Jonathan Muller
a4e2eb5725
Refactor the whole promise thing
9 years ago
Jonathan
e45393a9e5
Promisify getAndPassUp
9 years ago
Jonathan
5dae350582
Refactor promise usage and return it only if no callback provided
9 years ago
Jonathan
9c2ae65bc4
More coverage + refactor promise usage on multi cache getters
9 years ago
Jonathan
74d4e4b2d4
Add promise support for get/set
9 years ago
Jonathan
c3699a61e6
Remove unused statement (unable to pass through)
9 years ago
Jonathan
b92743fb87
Add multi-caching promise support for Wrap
9 years ago
Jonathan
a29be318f3
Add Promise support when using cache.wrap
9 years ago
Bryan Donovan
7ae4f245d5
trying to fix #28 by checking if callbackFiller has key in domain.error
9 years ago
Bryan Donovan
a803db415b
multi-caching: using underlying store's isCacheableValue function when it exists
9 years ago
Bryan Donovan
ee42ac343f
using isCacheableValue in getFromHighestPriorityCache and getAndPassUp
9 years ago
Bryan Donovan
146d3eaeb7
bumpin lru-cache, multiplying options.ttl by 1000 in memory store set()
10 years ago
dan
bc824e6e02
memoryStore.set() 增加 maxAge参数
10 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
Gregor MacLennan
2b64f3d0b2
Pass dispose, length & stale options to lru-cache
The length option is particularly useful with lru-cache if you want to store large objects of varying size and limit memory usage.
https://github.com/isaacs/node-lru-cache#options
10 years ago
Bryan Donovan
13d1eb16d6
not trying to pass ttl into cache.set() in getAndPassUp()
10 years ago
Bryan Donovan
c2eac33895
refactored redis example store, added ttl function to caching.js
10 years ago
Bryan Donovan
444d43d934
refactoring, cleanup, test for error handling in getAndPassUp()
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
6fc00781c7
changing async.forEach to each and async.forEachSeries to eachSeries
10 years ago
Bryan Donovan
5bcc45fc6b
extracting CallbackFiller class
10 years ago
Bryan Donovan
01a232411a
minor test changes, jscs rule update
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
8ee4c797f2
Hint fixes. Removing relaxing options.
10 years ago
Sean Cady
1c341dd985
test cases passing. but not enough coverage.
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
Raadad Elsleiman
9bca5e674a
fixing handling of falsy valus in get_and_pass_up
10 years ago
Raadad Elsleiman
2cb74a032d
get and pass up feature to update higher caches
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