Cache guide
The Cache module provides your Cherrycake application with a standardized interface to implement caching and shared memory mechanisms into your App by connecting to multiple external cache providers.
Cache providers
<?php
namespace Cherrycake;
$CacheConfig = [
"providers" => [
"fast" => [
"providerClassName" => "CacheProviderApcu"
]
]
];<?php
namespace Cherrycake;
$CacheConfig = [
"providers" => [
"fast" => [
"providerClassName" => "CacheProviderApcu"
],
"huge" => [
"providerClassName" => "CacheProviderRedis",
"config" => [
"scheme" => "tcp",
"host" => "localhost"
"port" => 6379,
"database" => 0,
"prefix" => "CherrycakeApp:"
]
]
]
];Modules that depend on Cache
How long cached objects stay in cache?
Other ways of using shared memory
Last updated