mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 17:33:40 +08:00
14db879a31
This is a bottom up rewrite of Discourse cache to support faster performance and a limited surface area. ActiveSupport::Cache::Store accepts many options we do not use, this partial implementation only picks the bits out that we do use and want to support. Additionally params are named which avoids typos such as "expires_at" vs "expires_in" This also moves a few spots in Discourse to use Discourse.cache over setex Performance of setex and Discourse.cache.write is similar. |
||
---|---|---|
.. | ||
bench.rb |