Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Caching: MemCache and Redis stores use local cache for multi-reads | Gabriel Sobrinho | 2018-02-23 | 1 | -0/+10 |
| | | | | | Fixes #31909. Closes #31911. | ||||
* | Merge pull request #31866 from fatkodima/redis_cache-connection_pool | Rafael Mendonça França | 2018-02-14 | 2 | -2/+50 |
|\ | | | | | | | Add support for connection pooling on RedisCacheStore | ||||
| * | Add support for connection pooling on RedisCacheStore | fatkodima | 2018-02-01 | 2 | -2/+50 |
| | | |||||
* | | Use Redis#mget for RedisCacheStore#fetch_multi | fatkodima | 2018-02-05 | 1 | -0/+8 |
| | | |||||
* | | Add missing instrumentation to RedisCacheStore#read_multi | fatkodima | 2018-02-05 | 6 | -17/+20 |
| | | |||||
* | | RedisCacheStore: fix `#write_multi` mset serialization | fatkodima | 2018-02-04 | 1 | -0/+10 |
|/ | | | | | Closes #31886 Fixes #31884 | ||||
* | Revert "Merge pull request #31447 from fatkodima/redis_cache-connection_pool" | George Claghorn | 2018-01-31 | 1 | -32/+0 |
| | | | | | This reverts commit ac74e2c521f6ddc0eac02d74a1313261bcc1d60f, reversing changes made to ffdb06136152b3c5f7f4a93ca5928e16e755d228. | ||||
* | Suppress expected exceptions by `report_on_exception` = `false` | yuuji.yaginuma | 2018-01-29 | 1 | -0/+4 |
| | | | | | This suppresses `Timeout::Error` exceptions. Ref: https://travis-ci.org/rails/rails/jobs/334622442#L1089-L1110 | ||||
* | Remove extra whitespace | Daniel Colson | 2018-01-25 | 1 | -1/+1 |
| | |||||
* | Use assert_empty and assert_not_empty | Daniel Colson | 2018-01-25 | 1 | -1/+1 |
| | |||||
* | Use assert_predicate and assert_not_predicate | Daniel Colson | 2018-01-25 | 2 | -4/+4 |
| | |||||
* | Improve fault tolerance for redis cache store | fatkodima | 2018-01-23 | 4 | -6/+126 |
| | |||||
* | Add support for connection pooling on RedisCacheStore | fatkodima | 2018-01-22 | 4 | -50/+91 |
| | |||||
* | Pass desired driver to Redis client constructor rather than munging global ↵ | George Claghorn | 2018-01-21 | 1 | -16/+12 |
| | | | | config | ||||
* | Support for connection pooling on mem cache store | Gabriel Sobrinho | 2018-01-18 | 1 | -0/+74 |
| | |||||
* | Test against the pure-Ruby Redis driver | George Claghorn | 2018-01-17 | 1 | -0/+6 |
| | |||||
* | Fix constant reference | George Claghorn | 2018-01-16 | 1 | -2/+1 |
| | | | | Update the long key handling test so it triggers truncation in the Redis cache store. | ||||
* | add instrumentation for read_multi | Ignatius Reza | 2017-12-29 | 1 | -6/+6 |
| | | | | currently it's not possible to know what the hit rates are from read_multi | ||||
* | Test that cache stores build unversioned keys | George Claghorn | 2017-12-22 | 1 | -0/+12 |
| | |||||
* | Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the future | Ryuta Kamizono | 2017-12-14 | 1 | -1/+1 |
| | | | | Follow up of #31432. | ||||
* | MemCacheStore: Support expiring counters | Takumasa Ochi | 2017-11-20 | 1 | -0/+16 |
| | | | | | | | Support `expires_in` in `ActiveSupport::Cache::MemCacheStore#increment` and `#decrement`. Closes #30716. | ||||
* | Cache: Enable compression by default for values > 1kB. | Jeremy Daer | 2017-11-13 | 2 | -3/+20 |
| | | | | | | | | | | | | | Compression has long been available, but opt-in and at a 16kB threshold. It wasn't enabled by default due to CPU cost. Today it's cheap and typical cache data is eminently compressible, such as HTML or JSON fragments. Compression dramatically reduces Memcached/Redis mem usage, which means the same cache servers can store more data, which means higher hit rates. To disable compression, pass `compress: false` to the initializer. | ||||
* | Built-in Redis cache store | Jeremy Daer | 2017-11-13 | 3 | -3/+162 |
| | | | | | | | | | | | * Supports vanilla Redis, hiredis, and Redis::Distributed. * Supports Memcached-like sharding across Redises with Redis::Distributed. * Fault tolerant. If the Redis server is unavailable, no exceptions are raised. Cache fetches are treated as misses and writes are dropped. * Local cache. Hot in-memory primary cache within block/middleware scope. * `read_/write_multi` support for Redis mget/mset. Use Redis::Distributed 4.0.1+ for distributed mget support. * `delete_matched` support for Redis KEYS globs. | ||||
* | Fixes ActiveSupport::Cache::FileStore#cleanup bug which prevented it from ↵ | Erich Soares Machado | 2017-10-03 | 1 | -0/+1 |
| | | | | cleaning up the expired cache keys | ||||
* | Use File::NULL instead of "/dev/null" | Kazuhiro NISHIYAMA | 2017-07-31 | 1 | -1/+1 |
| | |||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 19 | -0/+19 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 19 | -0/+19 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 19 | -19/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Merge pull request #29540 from kirs/rubocop-frozen-string | Matthew Draper | 2017-07-02 | 19 | -0/+19 |
|\ | | | | | | | Enforce frozen string in Rubocop | ||||
| * | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 19 | -0/+19 |
| | | |||||
* | | Make ActiveSupport frozen string literal friendly. | Pat Allan | 2017-06-20 | 3 | -7/+7 |
|/ | | | | | | | The ActiveSupport test suite only passes currently if it uses the latest unreleased commits for dalli, and a patch for Builder: https://github.com/tenderlove/builder/pull/6 Beyond that, all external dependencies (at least, to the extent they’re used by ActiveSupport) are happy, including Nokogiri as of 1.8.0. | ||||
* | Cache: test coverage for cleanup behavior with local cache strategy | Eugene Kenny | 2017-06-10 | 1 | -0/+15 |
| | | | | | | No need to pass `#cleanup` options through to `LocalCache#clear`. Fixes #29081. References #25628. | ||||
* | Split up the cache test suite so it's easier to understand and extend (#29404) | Jeremy Daer | 2017-06-10 | 19 | -0/+1383 |
Split up the caching tests as prep for adding a new cache store. Slices the mega test/caching_test.rb into behavior modules, concrete store tests, and cross-cutting store tests. Considering moving cache store behavior modules into lib/ so they may be used for acceptance testing by third parties. |