= CacheVersion
CacheVersion lets you maintain a version for any class. This can be used for cache invalidation, and RecordCache and MethodCache use it for that. It uses memcache to reduce database access when the version of a class hasn't changed.
== Usage:
CacheVersion.get(User)
CacheVersion.increment(User) CacheVersion.get(User)
User.version
User.increment_version User.version
== Install:
sudo gem install cache-version -s http://gemcutter.org
Also, you need to create a migration to make the cache_versions table. See examples/sample_migration.rb
== Dependencies:
- {memcache}[http://github.com/ninjudd/memcache]
== License:
Copyright (c) 2009 Justin Balthrop, Geni.com; Published under The MIT License, see LICENSE