mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-14 02:27:23 -07:00
spaces.php
This commit is contained in:
parent
7755490b81
commit
eefa32741e
845 changed files with 50409 additions and 0 deletions
34
aws/Aws/CacheInterface.php
Normal file
34
aws/Aws/CacheInterface.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
namespace Aws;
|
||||
|
||||
/**
|
||||
* Represents a simple cache interface.
|
||||
*/
|
||||
interface CacheInterface
|
||||
{
|
||||
/**
|
||||
* Get a cache item by key.
|
||||
*
|
||||
* @param string $key Key to retrieve.
|
||||
*
|
||||
* @return mixed|null Returns the value or null if not found.
|
||||
*/
|
||||
public function get($key);
|
||||
|
||||
/**
|
||||
* Set a cache key value.
|
||||
*
|
||||
* @param string $key Key to set
|
||||
* @param mixed $value Value to set.
|
||||
* @param int $ttl Number of seconds the item is allowed to live. Set
|
||||
* to 0 to allow an unlimited lifetime.
|
||||
*/
|
||||
public function set($key, $value, $ttl = 0);
|
||||
|
||||
/**
|
||||
* Remove a cache key.
|
||||
*
|
||||
* @param string $key Key to remove.
|
||||
*/
|
||||
public function remove($key);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue