File Based Cache

Class Methods

The following methods can be invoked on instances of this class.

sanitize(string strKey)

Helper function to sanitize any keys

getPath(mixed strType, mixed strKey)

Helper function to get the path of a cached entity

save(mixed strType, mixed strKey, string strValue)

Stores a value into the cache

saveNoExport(mixed strType, mixed strKey, string strValue)

Stores a value into the cache

get(mixed strType, string strKey)

Stores a value into the cache

isCached(mixed strType, mixed strKey, int iTTL)

Stores a value into the cache

delete(mixed strType, string strKey)

Removes / invalidates a cache value

clear()

Clears the cache

setCachePath(string strCachePath)

Sets the cache path

getCachePath()

Returns the cache path

restoreCachePath()

Returns the cache path

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class