Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Creating a cache filename with callables. More...
Public Member Functions | |
__construct (callable $callable) | |
filter (string $name) | |
Method to create cache filename with. | |
Creating a cache filename with callables.
@subpackage Caching
CallableNameFilter::filter | ( | string | $name | ) |
Method to create cache filename with.
The returning name MUST follow the rules for keys in PSR-16.
@externalurl https://www.php-fig.org/psr/psr-16/
The returning name MUST be a string of at least one character that uniquely identifies a cached item, MUST only contain the characters A-Z, a-z, 0-9, _, and . in any order in UTF-8 encoding and MUST not longer then 64 characters. The following characters are reserved for future extensions and MUST NOT be used: {}()/::@:
A provided implementing library MAY support additional characters and encodings or longer lengths, but MUST support at least that minimum.
string | $name | The name for the cache will be most likly an url with query string |
string | the new cache name |