Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
cache_is_searchable Interface Reference

Cache store feature: keys are searchable. More...

Inheritance diagram for cache_is_searchable:
cachestore_file cachestore_redis cachestore_session cachestore_static

Public Member Functions

 find_all ()
 Finds all of the keys being used by the cache store. More...
 
 find_by_prefix ($prefix)
 Finds all of the keys whose keys start with the given prefix. More...
 

Detailed Description

Cache store feature: keys are searchable.

Cache stores can choose to implement this interface. In order for a store to be usable as a session cache it must implement this interface.

Since
Moodle 2.4.4

Member Function Documentation

◆ find_all()

cache_is_searchable::find_all ( )

Finds all of the keys being used by the cache store.

Return values
array.

Implemented in cachestore_static, cachestore_session, cachestore_redis, and cachestore_file.

◆ find_by_prefix()

cache_is_searchable::find_by_prefix (   $prefix)

Finds all of the keys whose keys start with the given prefix.

Parameters
string$prefix

Implemented in cachestore_static, cachestore_session, cachestore_redis, and cachestore_file.


The documentation for this interface was generated from the following file: