final class InMemoryCache implements CacheInterface, GetAllInterface (View source)

Methods

__construct(MoParser $parser)

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

array
getAll()

No description

Details

__construct(MoParser $parser)

No description

Parameters

MoParser $parser

string get(string $msgid)

Returns cached msgstr if it is in cache, otherwise $msgid

Parameters

string $msgid

Return Value

string

void set(string $msgid, string $msgstr)

Caches $msgstr value for key $mesid

Parameters

string $msgid
string $msgstr

Return Value

void

bool has(string $msgid)

Returns true if cache has entry for $msgid

Parameters

string $msgid

Return Value

bool

void setAll(array $translations)

No description

Parameters

array $translations

Return Value

void

array getAll()

No description

Return Value

array