Changeset View
Changeset View
Standalone View
Standalone View
src/cache/PhutilKeyValueCacheStack.php
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | /* -( Configuring the Stack )---------------------------------------------- */ | ||||
* // TTL does not persist; this will use no TTL. | * // TTL does not persist; this will use no TTL. | ||||
* $stack->getKey('hedgehog'); | * $stack->getKey('hedgehog'); | ||||
* | * | ||||
* @param int TTL in seconds. | * @param int TTL in seconds. | ||||
* @return this | * @return this | ||||
* | * | ||||
* @task config | * @task config | ||||
*/ | */ | ||||
public function setNextTTL($ttl) { | public function setNextTTL($ttl) { | ||||
$this->ttl = $ttl; | $this->nextTTL = $ttl; | ||||
return $this; | return $this; | ||||
} | } | ||||
epriestley: I believe this has zero use cases, but probably fine to keep. | |||||
/* -( Key-Value Cache Implementation )------------------------------------- */ | /* -( Key-Value Cache Implementation )------------------------------------- */ | ||||
public function getKeys(array $keys) { | public function getKeys(array $keys) { | ||||
$remaining = array_fuse($keys); | $remaining = array_fuse($keys); | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |
I believe this has zero use cases, but probably fine to keep.