Skip to content

Commit

Permalink
Added a new field in RequestError for communicating user provided inf…
Browse files Browse the repository at this point in the history
…o to the invoker

Implemented Touch, Contains, and LazyRemove methods
  • Loading branch information
lrleon committed May 21, 2023
1 parent b399b48 commit b4d2cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ type CacheEntry struct {
type RequestError struct {
Error error
Code int
UserInfo interface{}
UserCode int
// TODO: add UserInfo as a kind of opaque data pointer. In that way, the user can return to the invoker any kind of additional data
}

type CacheDriver struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/geniussportsgroup/gateway_cache

go 1.15
go 1.18

require (
github.com/frankban/quicktest v1.14.3 // indirect
Expand Down

0 comments on commit b4d2cf2

Please sign in to comment.