aboutsummaryrefslogtreecommitdiff
path: root/lib/CacheInterface.php
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 /lib/CacheInterface.php
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 'lib/CacheInterface.php')
-rw-r--r--lib/CacheInterface.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CacheInterface.php b/lib/CacheInterface.php
index 1c3b89ca..b332e21b 100644
--- a/lib/CacheInterface.php
+++ b/lib/CacheInterface.php
@@ -53,11 +53,11 @@ interface CacheInterface
public function saveData($data);
/**
- * Returns the timestamp for the curent cache data
- *
- * @return ?int Timestamp
+ * Returns the modification time of the current cache item.
+ * In unix timestamp.
+ * Example: 1688570578
*/
- public function getTime();
+ public function getTime(): ?int;
/**
* Removes any data that is older than the specified age from cache