ApcuCache
final class ApcuCache implements CacheInterface (View source)
Constants
LOADED_KEY |
|
Methods
__construct(MoParser $parser, string $locale, string $domain, int $ttl = 0, bool $reloadOnMiss = true, string $prefix = 'mo_')
No description
string
get(string $msgid)
Returns cached msgstr
if it is in cache, otherwise $msgid
void
set(string $msgid, string $msgstr)
Caches $msgstr
value for key $mesid
bool
has(string $msgid)
Returns true if cache has entry for $msgid
void
setAll(array $translations)
No description
Details
__construct(MoParser $parser, string $locale, string $domain, int $ttl = 0, bool $reloadOnMiss = true, string $prefix = 'mo_')
No description
string
get(string $msgid)
Returns cached msgstr
if it is in cache, otherwise $msgid
void
set(string $msgid, string $msgstr)
Caches $msgstr
value for key $mesid
bool
has(string $msgid)
Returns true if cache has entry for $msgid
void
setAll(array $translations)
No description