Class Cache
- Phramework\JSONAPI\Model\Model
- Phramework\JSONAPI\Model\Cache
Direct known subclasses
Indirect known subclasses
Phramework\JSONAPI\Model
,
Phramework\JSONAPI\Model\Get
,
Phramework\JSONAPI\Model\Relationship
Abstract
Namespace: Phramework\JSONAPI\Model
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 1.0.0
Located at Model/Cache.php
Namespace: Phramework\JSONAPI\Model
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 1.0.0
Located at Model/Cache.php
Methods summary
protected static
|
#
initializeCache( string $type )
Initialize cache object for a resource type
NOTE |
protected static
|
#
getCache( string $id )
NOTE Will return a clone of the resource, so any changes to it wont affect the stored in cache resource. |
protected static
boolean
|
|
protected static
|
#
invalidateCache( string $id )
Remove resource from cache, used by |
Methods inherited from Phramework\JSONAPI\Model\Model
getCast()
,
getEndpoint()
,
getIdAttribute()
,
getSchema()
,
getSelfLink()
,
getTable()
,
getType()
Constants summary
Constants inherited from Phramework\JSONAPI\Model\Model
GET_BY_PREFIX
,
GET_RELATIONSHIP_BY_PREFIX
,
POST_RELATIONSHIP_BY_PREFIX
Properties summary
protected static
object|null
|
$cache
Cache object |
#
null
|