Pages load 1.5-2x faster Exception trace in JSON is now represented as an array Fixed pagination of default favorites page in user pages Fixed thumbnail size validation for non-square thumbnails
23 lines
335 B
PHP
23 lines
335 B
PHP
<?php
|
|
class AbstractEntity
|
|
{
|
|
public $id;
|
|
protected $__cache;
|
|
|
|
public function setCache($key, $value)
|
|
{
|
|
$this->__cache[$key] = $value;
|
|
}
|
|
|
|
public function getCache($key)
|
|
{
|
|
return isset($this->__cache[$key])
|
|
? $this->__cache[$key]
|
|
: null;
|
|
}
|
|
|
|
public function hasCache($key)
|
|
{
|
|
return isset($this->__cache[$key]);
|
|
}
|
|
}
|