Mariusz Nowak
aa79f75eb6
-- whitespace
2013-07-22 19:33:23 +02:00
Mariusz Nowak
f955c6ffbd
Rename get to serialize
2013-07-22 19:15:49 +02:00
Mariusz Nowak
53a6304f27
-- whitespace
2013-05-18 10:12:07 +02:00
Mariusz Nowak
434b866ec3
force option
...
Force memoization of already memoized function
2013-05-18 10:11:09 +02:00
Mariusz Nowak
f57bac383c
Merge with v0.2
2013-03-23 16:13:23 +01:00
Mariusz Nowak
28c770166e
Prevent circular function calls
2013-03-23 16:00:07 +01:00
Mariusz Nowak
83f31df6f7
Bind function to context with 'method' option
2013-02-12 15:36:30 +01:00
Mariusz Nowak
fb4439692d
Improve 'method' functionality.
...
- Proto chain safe
- Memoized method is ready right after first access (previously it was bundled on first invokation which was problematic)
- memoize when used with method option returns object with name -> descriptor content, it should be used with Object.defineProperties on target object
2013-02-11 17:43:55 +01:00
Mariusz Nowak
0e32a471f6
Run dispose in same context as main function
2013-02-11 16:28:59 +01:00
Mariusz Nowak
8a5e0a3d26
-- whitespace
2013-02-04 14:33:37 +01:00
Mariusz Nowak
48fb305cdd
-- whitespace
2013-02-04 14:33:01 +01:00
Mariusz Nowak
0a1e34be71
-- whitespace
2013-02-04 14:32:43 +01:00
Mariusz Nowak
a65cf0b236
Do not import whole event-emitter
2013-01-25 00:01:08 +01:00
Mariusz Nowak
bcf03e72cc
Fix cache clear in regular mode
...
Overlooked (serious) bug introduced after switching to id matching algorithm.
Improved tests
2012-10-04 20:06:29 +02:00
Mariusz Nowak
e31e498ff9
Fix null pre-fetch cache issue
2012-10-03 15:46:32 +02:00
Mariusz Nowak
28da3c9c0d
preFetch option for maxAge variant
...
Thanks @puzrin for comments on that!
2012-10-03 15:40:37 +02:00
Mariusz Nowak
3a16a6feca
Provide arguments and context with 'hit' event
2012-10-03 15:06:36 +02:00
Mariusz Nowak
a0db6b4b22
Do not memoize already memoized functions
2012-10-03 13:31:49 +02:00
Mariusz Nowak
625b831533
Readability
2012-09-21 15:52:57 +02:00
Mariusz Nowak
1452a76dac
Basic documentation for each module
2012-09-21 15:49:09 +02:00
Mariusz Nowak
a62f1680af
-- lint
2012-09-21 15:14:19 +02:00
Mariusz Nowak
4ddf5b3238
Fix variable visibility. Lint
2012-09-21 15:13:52 +02:00
Mariusz Nowak
c2843dd16a
Add missing global dependency
2012-09-21 15:02:41 +02:00
Mariusz Nowak
49b181f559
Clean verbosity
2012-09-21 14:44:10 +02:00
Mariusz Nowak
f2d0dacd17
Support for async mode in refCounter
2012-09-21 14:06:32 +02:00
Mariusz Nowak
01735bd218
max: Handle async with async events
2012-09-21 13:54:29 +02:00
Mariusz Nowak
213ee0dc65
(fix) maxAge: Rely on async events
2012-09-21 13:52:26 +02:00
Mariusz Nowak
4c57e47a6d
maxAge: Rely on async events
2012-09-21 13:51:29 +02:00
Mariusz Nowak
851a6293ac
dispose: rely on async events
2012-09-21 13:50:30 +02:00
Mariusz Nowak
54fb4e4f13
async: safe purgeAll
2012-09-21 13:47:48 +02:00
Mariusz Nowak
d23505d700
maxAge: Handle init time properly when in async mode
2012-09-21 13:40:51 +02:00
Mariusz Nowak
22f4772556
Fix id for initasync event
2012-09-21 13:39:47 +02:00
Mariusz Nowak
329456db58
Improved async handling algorithm.
...
Introduced async events
2012-09-21 13:26:59 +02:00
Mariusz Nowak
146e59e543
Modularization. Cleanup and logic improvements.
...
Additionally changed max option algorithm from FIFO to LRU
2012-09-21 12:04:55 +02:00
Mariusz Nowak
9bc700d579
Fix dispose invocation for no arguments call
2012-09-19 14:09:52 +02:00
Mariusz Nowak
8d4aae4193
No need for 'ready' property
2012-09-19 14:00:30 +02:00
Mariusz Nowak
5ea9da0d28
Fix time output
2012-09-18 22:14:10 +02:00
Mariusz Nowak
1c4293ef6f
Return log string instead of running console.log
2012-09-18 22:11:12 +02:00
Mariusz Nowak
8e69aa25f2
Do not override statistics
2012-09-18 22:10:21 +02:00
Mariusz Nowak
462263125c
-- lint
2012-09-18 17:48:55 +02:00
Mariusz Nowak
62ab5441e1
Fix call to array#clear
2012-09-18 17:48:45 +02:00
Mariusz Nowak
a22ce4648d
-- cleanup
2012-09-18 17:38:48 +02:00
Mariusz Nowak
e9f1bc861d
Slight performance improvement
2012-09-18 17:22:05 +02:00
Mariusz Nowak
5f0fb398f2
Logic cleanup
2012-09-18 16:40:20 +02:00
Mariusz Nowak
728fbcec2b
Improve performance of primitive serialization
2012-09-18 16:34:36 +02:00
Mariusz Nowak
6f0e89a553
Change arguments order in getPrimitiveId
2012-09-18 16:05:27 +02:00
Mariusz Nowak
864abc6df8
More tests for 'max' and 'dispose' options
2012-09-18 15:11:09 +02:00
Mariusz Nowak
544fcdfb4c
-- lint
2012-09-18 14:55:24 +02:00
Mariusz Nowak
f3ad88d6ea
Document optional argument
2012-09-18 14:32:31 +02:00
Mariusz Nowak
2892e324dc
'max' and 'dispose' option
2012-09-18 14:31:36 +02:00