Commits on Jan 19, 2011
Commits on Jan 18, 2011
  1. Added cache stats and get_info/1

    The new operation get_info/1 returns the following information about a cache:
    
    - number of cache hits;
    - number of cache misses;
    - the total size of the cache (a constant, specified when the cache was created);
    - the current amount of free space in the cache (in bytes);
    - the number of items the cache is storing
    committed Jan 18, 2011
  2. Added update/3 operation

    Updates the item associated with a key only if the key already has an entry
    in the cache and there's enought space to store the new item. Also, it doesn't
    update the key's last access timestamp.
    committed Jan 18, 2011
Commits on Nov 26, 2010
Commits on Nov 25, 2010
  1. Fixed markdown again.

    committed Nov 25, 2010
  2. Markdown correction.

    committed Nov 25, 2010
  3. Updated documentation.

    committed Nov 25, 2010
  4. Added get/3 function.

    committed Nov 25, 2010
Commits on Nov 24, 2010
  1. Allow cache size to be specified as a string, binary or atom.

    The suffixes 'b', 'Kb', 'Mb' and 'Gb' (case insensitive) are now allowed when specifying the cache size.
    committed Nov 24, 2010
  2. Added a few more tests.

    committed Nov 24, 2010
Commits on Nov 21, 2010
Commits on Nov 19, 2010
Commits on Nov 17, 2010
  1. Simplified eunit test specs.

    committed Nov 17, 2010
  2. Added eunit tests.

    committed Nov 17, 2010
Commits on Oct 22, 2010
  1. term_cache_trees: some small optimizations when deleting and updating…

    … cache entries (less tree operations).
    committed Oct 22, 2010
Commits on Oct 9, 2010
Commits on Oct 8, 2010
  1. Added more tests.

    committed Oct 8, 2010
Commits on Oct 7, 2010
  1. Don't use a default name for a cache process. This didn't allowed us …

    …to create several caches where the name option was not specified.
    committed Oct 7, 2010
  2. Added an alternative implementation (term_cache_trees) that uses gb_t…

    …rees instead of ets tables.
    committed Oct 7, 2010
  3. Added flush operation.

    committed Oct 7, 2010
Commits on Aug 23, 2010
  1. Simpler logic for the 'put' operation.

    Also avoids searching through a properties list to find out the new size of the cache.
    Suggestions by Klaus Trainer.
    committed Aug 23, 2010
  2. Cover the case where a put operation is requested for a key already i…

    …n the cache - this had the issue
    
    of ending up with 2 expiration timeouts for the same cache entry.
    
    Issue found by Klaus Trainer. Thanks.
    committed Aug 23, 2010
  3. Pulled from Klaus Trainer's fork.

    Thanks.
    
    Fix @type and @spec annotations, so that there
    aren't any syntax errors when running edoc.
    committed Aug 23, 2010
Commits on Aug 20, 2010
  1. Avoid defensive programming.

    committed Aug 20, 2010