\CacheHelper
Simple helper for the Silverstripe cache system.
- Author: Christian Blank <c.blank@notthatbad.net>
Synopsis
class CacheHelper
{
- // methods
- public static string to_key()
- public static mixed cache_function()
- public static ICacheFrontend get_cache()
- public static ICacheFrontend get_local_cache()
- public static ICacheFrontend get_global_cache()
- public static ICacheSerializer get_serializer()
Methods
public
- cache_function() — Cache function results based on their arguments. This is only useful for pure functions.
- get_cache()
- get_global_cache()
- get_local_cache()
- get_serializer()
- to_key() — Returns a key, which can be used inside the cache