aboutsummaryrefslogtreecommitdiff
path: root/docs/07_Cache_API/02_CacheInterface.md
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2023-09-10 21:50:15 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-10 21:50:15 +0200
commit4b9f6f7e53e0b2e9aae59df2bbffc0bdd6805aea (patch)
tree40bc3e62a343df8bd0076b609d57248f7bd9448b /docs/07_Cache_API/02_CacheInterface.md
parenta786bbd4e0d45a98446ed0384ed57705a17b89d3 (diff)
downloadrss-bridge-4b9f6f7e53e0b2e9aae59df2bbffc0bdd6805aea.tar.gz
rss-bridge-4b9f6f7e53e0b2e9aae59df2bbffc0bdd6805aea.tar.zst
rss-bridge-4b9f6f7e53e0b2e9aae59df2bbffc0bdd6805aea.zip
fix: rewrite and improve caching (#3594)
Diffstat (limited to 'docs/07_Cache_API/02_CacheInterface.md')
-rw-r--r--docs/07_Cache_API/02_CacheInterface.md14
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/07_Cache_API/02_CacheInterface.md b/docs/07_Cache_API/02_CacheInterface.md
index 61127a0d..3e71237d 100644
--- a/docs/07_Cache_API/02_CacheInterface.md
+++ b/docs/07_Cache_API/02_CacheInterface.md
@@ -3,16 +3,14 @@ See `CacheInterface`.
```php
interface CacheInterface
{
- public function setScope(string $scope): void;
+ public function get(string $key, $default = null);
- public function setKey(array $key): void;
+ public function set(string $key, $value, int $ttl = null): void;
- public function loadData();
+ public function delete(string $key): void;
- public function saveData($data): void;
+ public function clear(): void;
- public function getTime(): ?int;
-
- public function purgeCache(int $seconds): void;
+ public function prune(): void;
}
-``` \ No newline at end of file
+```