MIDDAG for Moodle

cache_support extends facade

Facade for local_middag\framework\support\moodle\cache_support.

Tags
see
cache_support
mixin

Table of Contents

Methods

delete()  : bool
delete_many()  : bool
get()  : mixed
get_facade_accessor()  : string
Return the service accessor key for this facade.
get_many()  : array<string|int, mixed>|false
get_or_set()  : mixed
has()  : bool
make()  : cache|null
purge()  : bool
set()  : bool
set_many()  : bool

Methods

delete()

public static delete(string $key[, string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : bool
Parameters
$key : string
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'
Return values
bool

delete_many()

public static delete_many(array<string|int, mixed> $keys[, string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : bool
Parameters
$keys : array<string|int, mixed>
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'
Return values
bool

get()

public static get(string $key[, string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : mixed
Parameters
$key : string
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'

get_facade_accessor()

Return the service accessor key for this facade.

public static get_facade_accessor() : string
Return values
string

get_many()

public static get_many(array<string|int, mixed> $keys[, string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : array<string|int, mixed>|false
Parameters
$keys : array<string|int, mixed>
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'
Return values
array<string|int, mixed>|false

get_or_set()

public static get_or_set(string $key, callable $resolver[, string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : mixed
Parameters
$key : string
$resolver : callable
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'

has()

public static has(string $key[, string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : bool
Parameters
$key : string
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'
Return values
bool

make()

public static make([string|null $area = = 'null' ]) : cache|null
Parameters
$area : string|null = = 'null'
Return values
cache|null

purge()

public static purge([string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : bool
Parameters
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'
Return values
bool

set()

public static set(string $key, mixed $value[, string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : bool
Parameters
$key : string
$value : mixed
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'
Return values
bool

set_many()

public static set_many(array<string|int, mixed> $keyvalues[, string $area = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE' ]) : bool
Parameters
$keyvalues : array<string|int, mixed>
$area : string = = '\\local_middag\\framework\\support\\moodle\\cache_support::DEFAULT_CACHE'
Return values
bool

        
On this page

Search results