Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DAOMemoryCache.php
Go to the documentation of this file.
1<?php
2
3namespace Ubiquity\cache\dao;
4
19 protected $arrayCache;
20
21 public function store($class, $key, $object) {
22 $this->arrayCache [$class] [$key] = $object;
23 }
24
25 public function fetch($class, $key) {
26 return $this->arrayCache [$class] [$key] ?? false;
27 }
28
29 public function delete($class, $key) {
30 if (isset ( $this->arrayCache [$class] [$key] )) {
31 unset ( $this->arrayCache [$class] [$key] );
32 }
33 }
34}
35
Ubiquity\cache\dao$AbstractDAOCache This class is part of Ubiquity.
Simple Memory cache for DAO instances Ubiquity\cache\dao$DAOMemoryCache This class is part of Ubiquit...