提交 26cfa2ea 编写于 作者: J Jon Moss 提交者: GitHub

Merge pull request #28547 from brchristian/patch-2

Additional explanation about cache implementations
......@@ -387,6 +387,11 @@ store is not appropriate for large application deployments. However, it can
work well for small, low traffic sites with only a couple of server processes,
as well as development and test environments.
New Rails projects will be configured to use this implementation in the
development environment by default. (Note that, because processes will not share
cache data, if using `:memory_store` it will not be possible to manually read,
write or expire the cache via the Rails console.)
### ActiveSupport::Cache::FileStore
This cache store uses the file system to store entries. The path to the directory where the store files will be stored must be specified when initializing the cache.
......@@ -403,7 +408,8 @@ share a cache by using a shared file system, but that setup is not recommended.
As the cache will grow until the disk is full, it is recommended to
periodically clear out old entries.
This is the default cache store implementation.
This is the default cache store implementation (at `"#{root}/tmp/cache/"`) if
no explicit `config.cache_store` is supplied.
### ActiveSupport::Cache::MemCacheStore
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册