MvcLite\Cache

Defines the caching mechanism

Synopsis

class Cache extends ObjectAbstract {
  • // Inherited methods from ObjectAbstract
  • public final void __get()
  • public final void __set()
  • public final void __call()
  • public void __toString()
  • public string identify()
  • // Inherited methods from Singleton
  • public static Singleton getInstance()
  • // Inherited methods from Filepath
  • public Request filepath()
}

Hierarchy

Coverage

Methods 100% 5 / 5
Lines 100% 23 / 23

Constants

Name Value
MSG_ERR_IDENTIFY 'Descendents must implement the identify method'

Members

protected

  • $config — array
    property to store the configuration of the cache object
  • $instanceMvcLite\Traits\Singleton
    Static instance variable

Methods

protected

  • getCacheKey() — Returns a string to namespace a cache entry.
  • getFilePath() — Returns the relative filepath for a given filename

public

  • get() — gets data for an object, and a value
  • init() — initialize the cache instance
  • set() — stores data from an object.

Inherited from MvcLite\ObjectAbstract

public

  • __call() — Overriding the __call magic method
  • __get() — Overriding the __get magic method
  • __set() — Overriding the __set magic method
  • __toString() — returns a string representation of the object
  • identify() — method used to identify the object instance

Inherited from MvcLite\Traits\Singleton

public

Inherited from MvcLite\Traits\Filepath

public

History