Class ObjectCache
Simple object cache so we don't have to create them or write caching over again.
Example:
$key = 'User_Friends/' . $user->username(); return \Jyxo\Spl\ObjectCache::get($key) ?: \Jyxo\Spl\ObjectCache::set($key, new \User\Friends($this->context, $user));
- Jyxo\Spl\ObjectCache implements IteratorAggregate
Namespace: Jyxo\Spl
Category: Jyxo
Package: Jyxo\Spl
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jakub Tománek
Located at Spl/ObjectCache.php
Category: Jyxo
Package: Jyxo\Spl
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jakub Tománek
Located at Spl/ObjectCache.php
public static
|
|
public static
object
|
|
public
|
|
public static
object
|
|
public
object
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|