Class Socialveo\Core\helpers\CacheHelper

InheritanceSocialveo\Core\helpers\CacheHelper

Class CacheHelper

Public Methods

Hide inherited methods

MethodDescriptionDefined By
clearStaticCache() Clear cache Socialveo\Core\helpers\CacheHelper
getValue() Get value Socialveo\Core\helpers\CacheHelper
setValue() Set value Socialveo\Core\helpers\CacheHelper
staticCache() Static cache (makes sure what callable function will run only once for each key) Socialveo\Core\helpers\CacheHelper

Method Details

clearStaticCache() public static method

Clear cache

public static void clearStaticCache ( $method null, $key '' )
$method string
$key mixed

[optional]

getValue() public static method

Get value

public static mixed|null getValue ( $name )
$name string
setValue() public static method

Set value

public static void setValue ( $name, $value )
$name string
$value string
staticCache() public static method

Static cache (makes sure what callable function will run only once for each key)

public static mixed staticCache ( $method, $key, $callable null )
$method string

Class and method names

$key array|string

Cache name

$callable callable

Function what will cache