class ConfigurationsCacheInMemory in Configuration Management 7.3
Hierarchy
- class \Configuration\Helpers\ConfigurationsCacheInMemory implements ConfigurationsCacheInterface
Expanded class hierarchy of ConfigurationsCacheInMemory
1 file declares its use of ConfigurationsCacheInMemory
File
- src/
Helpers/ ConfigurationsCacheInMemory.php, line 7
Namespace
Configuration\HelpersView source
class ConfigurationsCacheInMemory implements ConfigurationsCacheInterface {
protected $cache;
public function __construct() {
$this
->reset();
}
public function reset() {
$this->cache = array();
}
public function contains($identifier) {
return isset($this->cache[$identifier]);
}
public function get($identifier) {
return $this->cache[$identifier];
}
public function getAll() {
return $this->cache;
}
public function set(Configuration $configuration) {
$this->cache[$configuration
->getIdentifier()] = $configuration;
return $this;
}
public function remove($identifier) {
if (isset($this->cache[$identifier])) {
unset($this->cache[$identifier]);
}
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurationsCacheInMemory:: |
protected | property | ||
ConfigurationsCacheInMemory:: |
public | function |
Overrides ConfigurationsCacheInterface:: |
|
ConfigurationsCacheInMemory:: |
public | function |
Overrides ConfigurationsCacheInterface:: |
|
ConfigurationsCacheInMemory:: |
public | function |
Overrides ConfigurationsCacheInterface:: |
|
ConfigurationsCacheInMemory:: |
public | function |
Overrides ConfigurationsCacheInterface:: |
|
ConfigurationsCacheInMemory:: |
public | function |
Overrides ConfigurationsCacheInterface:: |
|
ConfigurationsCacheInMemory:: |
public | function |
Overrides ConfigurationsCacheInterface:: |
|
ConfigurationsCacheInMemory:: |
public | function |