aboutsummaryrefslogtreecommitdiff
path: root/docs/07_Cache_API/02_CacheInterface.md
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2023-07-05 17:37:21 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-05 17:37:21 +0200
commita9fd3b9e61a7934c6b94fb5584c6668966a98cb9 (patch)
tree54f74721925f4ae99ca015c90dec4360368c3537 /docs/07_Cache_API/02_CacheInterface.md
parent18e15973610dc1ac1f04d35a74004011e9c1bdc0 (diff)
downloadrss-bridge-a9fd3b9e61a7934c6b94fb5584c6668966a98cb9.tar.gz
rss-bridge-a9fd3b9e61a7934c6b94fb5584c6668966a98cb9.tar.zst
rss-bridge-a9fd3b9e61a7934c6b94fb5584c6668966a98cb9.zip
fix(CacheInterface): logic bug in getTime (#3491)
* fix(CacheInterface): logic bug in getTime * test
Diffstat (limited to 'docs/07_Cache_API/02_CacheInterface.md')
-rw-r--r--docs/07_Cache_API/02_CacheInterface.md8
1 files changed, 1 insertions, 7 deletions
diff --git a/docs/07_Cache_API/02_CacheInterface.md b/docs/07_Cache_API/02_CacheInterface.md
index 609925a2..bc343ff1 100644
--- a/docs/07_Cache_API/02_CacheInterface.md
+++ b/docs/07_Cache_API/02_CacheInterface.md
@@ -27,12 +27,6 @@ saveData(mixed $data): self
## The `getTime` function
-This function returns the last write time for the cache, or `false` if the cache does not yet exist. Please notice that 'cache' refers to one specific item in the cache repository and might require additional data to identify a specific item (introduce custom functions where necessary!).
-
-```PHP
-getTime(): int, false
-```
-
## The `purgeCache` function
This function removes any data from the cache that is not within the given duration. The duration is specified in seconds and defines the period between now and the oldest item to keep.
@@ -70,4 +64,4 @@ class MyTypeCache implements CacheInterface {
}
}
// Imaginary empty line!
-``` \ No newline at end of file
+```