Commit graph

9 commits

Author SHA1 Message Date
ahrav
c98c092a71
[refactor] - Decouple Metrics From Cache Implementation (#3355)
* decouple metrics from cache logic

* delete

* address comments

* update
2024-10-04 13:25:10 -07:00
ahrav
b63d6c02a7
[chore] - Rename memory cache package to 'simple' for clarity (#3352)
* rename memory to cache

* Update

* fix imports
2024-10-02 07:48:26 -07:00
ahrav
a5b09951c1
[feat] - Add SizedLRU Cache (#3344)
* add impl for lru sized cache

* update error message

* address comments

* rename

* update comments
2024-09-30 13:18:15 -07:00
ahrav
0ba3fa11ba
Add named params to interface methods (#3335) 2024-09-26 07:06:07 -07:00
Richard Gomez
5216142960
refactor(cache): use generics (#2930) 2024-06-06 13:08:00 -04:00
ahrav
677238c96c
Extend memory cache (#2275)
* Extend memory cache to allow for configuring custom expiration and purge interval

* use any for value type

* fix test

* fix test

* address comments

* address

* make new construct more clear

* reduce duplication

* fix test
2024-01-11 08:20:37 -08:00
ahrav
d55cb56db4
update comment (#2084)
update Cache.Contents() comment
2023-11-01 07:36:22 -07:00
ahrav
9cb91a6e4f
Extend cache interface (#1318)
* Extend cache interface.

* update test.
2023-05-03 08:21:00 -07:00
ahrav
62d44f59f5
Add in-memory caching pkg (#1189)
* Add in-memory caching lib, used by the GCS source.

* Fix static check.

* Add test for NewWithData.

* update comment.

* update comments.

* remove unused dep.

* address comments.

* Add exists method.

* fix test.
2023-03-20 16:16:49 -07:00