[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60410] [PATCH 6/7] cache: Specify that cache! returns the cached va
From: |
Arun Isaac |
Subject: |
[bug#60410] [PATCH 6/7] cache: Specify that cache! returns the cached value. |
Date: |
Thu, 29 Dec 2022 20:23:59 +0000 |
* mumi/cache.scm (cache!): Specify in the docstring that cache!
returns the cached value.
---
mumi/cache.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mumi/cache.scm b/mumi/cache.scm
index 13b21f9..98a7856 100644
--- a/mumi/cache.scm
+++ b/mumi/cache.scm
@@ -1,5 +1,6 @@
;;; mumi -- Mediocre, uh, mail interface
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This program is free software: you can redistribute it and/or
;;; modify it under the terms of the GNU Affero General Public License
@@ -34,7 +35,7 @@ expired or return #F."
(define* (cache! key value
#:optional (ttl (%config 'cache-ttl)))
"Store VALUE for the given KEY and mark it to expire after TTL
-seconds."
+seconds. Return VALUE."
(let ((t (current-time)))
(hash-set! %cache key `(#:expires ,(+ t ttl) #:value ,value))
value))
--
2.38.1
- [bug#60410] [PATCH 0/7] mumi: Boolean prefixes in xapian indexing and others, Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 1/7] xapian: Index several terms as boolean and without positions., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 4/7] messages: Remove unused set intersection feature in search-bugs., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 5/7] messages: Offload limiting search results to xapian., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 7/7] xapian: Preserve order of search results., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 3/7] xapian: Do not override the default OR implicit query operator., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 2/7] xapian: Declare some prefixes as boolean., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 6/7] cache: Specify that cache! returns the cached value.,
Arun Isaac <=