Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

May 27, 2011

  1. Ben Mabey

    Merge remote branch 'raynes/masai'

    bmabey authored

May 18, 2011

  1. Anthony Grimes

    Don't truncate.

    Raynes authored
  2. Anthony Grimes

    Added .cake to .gitignore.

    Raynes authored
  3. Anthony Grimes

    Added Masai support.

    Raynes authored
  4. Ben Mabey

    if ehcache keys are strings don't vec them- they look ugly in logs

    bmabey authored

May 12, 2011

  1. Ben Mabey

    replace existing ehcache blocking-caches to prevent error on file reload

    bmabey authored
  2. Ben Mabey

    adds helper function to get an ehcache by name

    bmabey authored
  3. Ben Mabey

    removes flushing of ehcaches on shutdown - this is done already by eh…

    …cache
    
    The CacheManager shutdown methods calls dispose on all of the caches
    which flushes the caches.  For more information:
    http://ehcache.org/apidocs/net/sf/ehcache/Cache.html#dispose()
    bmabey authored
  4. Ben Mabey

    makes ehcache rely on the same respective parent project version

    bmabey authored
  5. Ben Mabey

    updates to the latest version of ehcache (2.4.2)

    bmabey authored

May 10, 2011

  1. Ben Mabey

    adds test to verify ehcache blocking works via cache manager default …

    …config
    bmabey authored
  2. Ben Mabey

    adds config options to easitly create a BlockingCache (for ehcache)

    bmabey authored
  3. Ben Mabey

    allows ehcache/strategy to take a single manager and use it's default…

    … cache config
    bmabey authored
  4. Ben Mabey

    bumps version for ehcache

    bmabey authored
  5. Ben Mabey

    updates note on odd *ns* expansion...

    bmabey authored
  6. Ben Mabey

    excludes log4j from ehcache jar

    bmabey authored
  7. Ben Mabey

    fixes (lack of) serialization of key for ehcache, adds type hinting, …

    …and fixes a test
    
    The type hinting was only added on the calls that are used repeatedly in
    general caching operations.  These should be as fast as possible....
    
    The test fixed was cached-names... It was fine until I added more caches
    and then the test broke.  The test was relying on internal state of the
    default CacheManager and would thereby be effected by all the other
    tests.  So, I created a new manager jusr for that one test so it won't
    break everytime a new cache is used in the test.  (A better approach probably
    would be to reset the default cache manager for each test)
    bmabey authored
  8. Ben Mabey

    let, if -> if-let

    bmabey authored
  9. Ben Mabey

    adds failing test that exposes bug in how keys are being 'toString'ed

    bmabey authored
  10. Ben Mabey

    adds more info to failure messages in tests

    bmabey authored
  11. Ben Mabey

    adds log4j for dev so we can see cache stats in tests

    bmabey authored
  12. Ben Mabey

    fixes to-camel-case bug that was effecting the values of the xml, not…

    … just keys
    
    This bug was breaking tests for me beauase my tmp folder had dashed in
    them.  We really shoudn't be changing the values provided by the user
    anyways.
    bmabey authored
  13. Ben Mabey

    adds register-with-jmx so statisic information can be made available

    bmabey authored
  14. Ben Mabey

    bumps clj-filt-utils dep to get exists? helper function

    bmabey authored
  15. Ben Mabey

    bumping to 0.4.0-SNAPSHOT.. (there are some failing tests)

    There were no dependencies specified
    Copying 3 files to /private/tmp/cache-dot-clj/lib/dev
    Testing cache-dot-clj.test.cache
    FAIL in (invalidate-all-external) (cache.clj:23)
      Second call (50) hits function
      expected: (check msecs t)
        actual: false
        FAIL in (invalidate-all-external) (cache.clj:23)
      Second call (51) hits function
      expected: (check msecs t)
        actual: false
        Ran 21 tests containing 230 assertions.
        2 failures, 0 errors.
    bmabey authored
  16. Ben Mabey

    adds support for transient caches that can be GCed

    Previous to this commit all caches were assumed to be resident in memory
    for the entire lifetime of the process.  This makes since when you are
    using def-cached or similar.  With this assumption it was safe to store
    all the caches in the internal function-utils* atom.  This allowed for
    easy invalidation of all defiened caches.
    
    However, for temporary caches that are bound in a let or binding form you
    do not want these caches to stick around after there lexical scopiing.
    This commit allows the client to specify if a cache is intended to be
    transient and thereby won't be added to the function-utils* atom.
    
    This is an okay workaround, but not an ideal solution.  The ideal
    solution would be to not force this extra call onto the client but to
    always add the caches to function-utils* to keep the API consistent.
    Instead of storing the objects, WeakReferences would need to be
    used so that the caches would be GCed as normal.  I found this SO thread
    about similar issues and Google' collections library was brought up as a
    good option for this type of work:
    
    http://stackoverflow.com/questions/3752957/thread-safe-object-pool-with-guarantee-of-returning-existing-object-if-strong-ref
    bmabey authored
  17. Ben Mabey

    adds basic gitignore file

    bmabey authored
  18. Ben Mabey

    adds :cache-key function option

    The majority of the time the standard behaviour of using the args as the
    cache key is fine.  However, for complex args (e.g. args which contain
     Java objects that break identity) you may need to specify how a unique
    cache key is to be generated from the args.  (You may also want to do
    this for storage/performance reasons.)  This commit gives you the
    ability to specify a cach-key function that operates on the same args
    which the value is computed from.
    bmabey authored

Apr 30, 2011

  1. Alien Science

    Merge branch 'master' of github.com:alienscience/cache-dot-clj

    authored

Apr 29, 2011

  1. Alien Science

    Added invalidate-all for internal memoize

    authored

Apr 22, 2011

  1. Alien Science

    Keep existing LRU

    Marked java collection as mutable. Added new strategy to README.
    authored

Mar 16, 2011

  1. Alien Science

    LRU implemented as a linked hash map

    authored

Oct 01, 2010

  1. Alien Science

    Release 0.0.3

    authored

Sep 30, 2010

  1. Alien Science

    Started on Ehcache README

    authored
  2. Alien Science

    Cleaned up ehcache unittests

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