Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jan 19, 2011
Commits on Jan 18, 2011
  1. Added cache stats and get_info/1

    authored
    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
  2. Added update/3 operation

    authored
    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.
Commits on Nov 26, 2010
Commits on Nov 25, 2010
  1. Fixed markdown again.

    authored
  2. Markdown correction.

    authored
  3. Updated documentation.

    authored
  4. Added get/3 function.

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

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

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

    authored
  2. Added eunit tests.

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

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

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

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

    authored
    …rees instead of ets tables.
  3. Added flush operation.

    authored
Commits on Aug 23, 2010
  1. Simpler logic for the 'put' operation.

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

    authored
    …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.
  3. Pulled from Klaus Trainer's fork.

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

    authored
Something went wrong with that request. Please try again.