Zed. The source code to build a world.

Cache
in package

Cache caller

Table of Contents

Methods

load()  : Cache
Gets the cache instance, initializing it if needed

Methods

load()

Gets the cache instance, initializing it if needed

public static load() : Cache

The correct cache instance to initialize will be determined from the $Config['cache']['engine'] preference.

The class cache to use will be Cache + (preference engine, capitalized)

This method will create an instance of the specified object, calling the load static method from this object class.

Example: $Config['cache']['engine'] = 'quux'; $cache = Cache::load(); //Cache:load() will call CacheQuux:load();

Return values
Cache

the cache instance, or null if nothing is cached


        
On this page

Search results