Open ashumkin opened 1 month ago
Also, the same code (with removed expiration time on the line 27 ) works well with the original golang/groupcache
package
$ curl 'localhost:8081/set?key=a&value=1' -i
HTTP/1.1 200 OK
Date: Thu, 01 Aug 2024 16:46:31 GMT
Content-Length: 0
$ curl 'localhost:8081/cache?key=a' -i
HTTP/1.1 200 OK
Date: Thu, 01 Aug 2024 16:46:33 GMT
Content-Length: 2
Content-Type: text/plain; charset=utf-8
1
I run
server starts, outputs
Then I run
server outputs
then I run
server outputs
curl hangs for a while then outputs
I expect server will output the value
1
set for the keya