3 * @file src/Model/Storage/IStorage.php
4 * @brief Storage backend system
7 namespace Friendica\Model\Storage;
10 * @brief Interface for storage backends
15 * @brief Get data from backend
16 * @param string $ref Data reference
19 public static function get($ref);
22 * @brief Put data in backend as $ref. If $ref is null a new reference is created.
23 * @param string $data Data to save
24 * @param string $ref Data referece. Optional.
25 * @return string Saved data referece
27 public static function put($data, $ref = null);
30 * @brief Remove data from backend
31 * @param string $ref Data referece
32 * @return boolean True on success
34 public static function delete($ref);