aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to get multiple memcached keys at the same time (via ↵Joe Van Dyk2009-05-181-0/+5
| | | | | | MemCacheStore#read_multi). Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-221-0/+2
|
* Merge branch 'master' into cherryJeremy Kemper2009-04-201-0/+5
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: activesupport/CHANGELOG activesupport/lib/active_support/core_ext/class/delegating_attributes.rb activesupport/lib/active_support/core_ext/hash/conversions.rb activesupport/lib/active_support/core_ext/module/attribute_accessors.rb activesupport/lib/active_support/core_ext/string/multibyte.rb activesupport/lib/active_support/core_ext/time/calculations.rb activesupport/lib/active_support/deprecation.rb
| * Nicer name for anonymous local cache middleware classJoshua Peek2009-04-021-0/+5
| |
* | Remove rarely-used DRb cache storeJeremy Kemper2009-04-171-14/+0
| |
* | Fix requireJeremy Kemper2009-03-291-1/+1
| |
* | Explicit File#atomic_write dependencyJeremy Kemper2009-03-291-0/+2
|/
* Only dup local cache values if duplicable [#1653 state:resolved]Joshua Peek2009-01-281-1/+1
|
* Decouple the local cache strategy from MemCacheStore for reuse with other ↵Lourens Naude2009-01-172-58/+110
| | | | | | remote stores [#1653 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added in a local per request cache to MemCacheStore. It acts as a buffer to ↵Nahum Wild2009-01-151-4/+61
| | | | | | stop unneccessary requests being sent through to memcache [#1653 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Lazy-require DRb for ActiveSupport::Cache::DRbStoreJeremy Kemper2008-11-231-3/+2
|
* Merge with docrailsPratik Naik2008-11-024-9/+49
|
* Bring MemCacheStore and CompressedMemCacheStore inline with expected counter ↵Doug Barth2008-10-172-2/+10
| | | | | | manipulation semantics. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix cache counter semantics for MemoryCache, FileStoreCache, and ↵Doug Barth2008-10-171-0/+1
| | | | | | (presumably) the DRbStore. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Removed monitor from MemoryStore and created a seperate threadsafe store ↵Joshua Peek2008-09-102-39/+57
| | | | called SynchronizedMemoryStore
* Fix indentation mismatchJeremy Kemper2008-09-081-1/+1
|
* Ensure objects cached with MemoryStore are immutableJoshua Peek2008-08-191-1/+1
|
* Consistently use the framework's configured logger and avoid reverting to ↵Joshua Peek2008-08-181-2/+2
| | | | RAILS_DEFAULT_LOGGER unless necessary.
* Replace MemoryStore mutex with a monitor to avoid issues with nested callsJoshua Peek2008-08-181-12/+24
|
* Marshal FileStore valuesJoshua Peek2008-08-131-2/+2
|
* Account for the possibility of a nil options argument to ↵Jeffrey Hardy2008-08-131-4/+4
| | | | CompressedMemCacheStore#read/#write
* Ensure file atomic write uses the cache directory as its tmp folderJoshua Peek2008-08-061-1/+1
|
* Treat single C operations in MemoryStore as atomicJoshua Peek2008-08-061-23/+8
|
* Make FileStore use atomic writesJoshua Peek2008-08-061-1/+1
|
* MemoryStore is the only "unsafe" store. Make it threadsafe by default.Joshua Peek2008-08-061-12/+43
|
* MemCacheStore#decrement should use data instance variable not local variable ↵Joshua Peek2008-07-161-15/+15
| | | | [#521 state:resolved]
* Add fragment_exist? and exist? methods to cache stores. [#203 state:resolved]José Valim2008-05-193-3/+19
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add missing clear method to memory_storeTobias Lütke2008-04-291-0/+4
|
* Allow access to mem_cache_store's stats hashTobias Lütke2008-04-291-0/+4
|
* Implement increment/decrement on cache storage engines, using read/write by ↵Tobias Lütke2008-04-291-0/+18
| | | | default and using atomic command on memcache
* By default rails will update keys in memcached when using Rails.cache.write. ↵Tobias Lütke2008-04-291-6/+5
| | | | Use :unless_exist => true flag to prevent existing keys from being overwritten.
* Add default options to file_store to make it align with the other cache ↵Michael Koziarski2008-04-261-2/+2
| | | | | | stores. [monki] [#40 state:resolved]
* Support options passed to ActiveSupport::Cache :mem_cache_store [#14 ↵jweiss2008-04-171-1/+2
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Add #clear to mem_cache_store, flushes all cachesJeremy Kemper2008-02-211-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8916 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pass array of addressesJeremy Kemper2008-02-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that the options hash can be nil when coming from fragmentsDavid Heinemeier Hansson2008-02-071-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MemCacheStore#write and #delete return a boolean indicating whether the ↵Jeremy Kemper2008-02-011-5/+16
| | | | | | operation succeeded git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MemCacheStore#write uses add by default and set if :force => trueJeremy Kemper2008-02-011-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8765 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Log an error to the console when the memcache server is raisingDavid Heinemeier Hansson2008-01-221-3/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved the caching stores from ActionController::Caching::Fragments::* to ↵David Heinemeier Hansson2008-01-035-0/+175
ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH] Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH] All fragment cache keys are now by default prefixed with the 'views/' namespace [DHH] Added ActiveRecord::Base.cache_key to make it easier to cache Active Records in combination with the new ActiveSupport::Cache::* libraries [DHH] Added ActiveSupport::Gzip.decompress/compress(source) as an easy wrapper for Zlib [Tobias Luetke] Included MemCache-Client to make the improved ActiveSupport::Cache::MemCacheStore work out of the box [Bob Cottrell, Eric Hodel] Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de