File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed
Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ type LoadingCache interface {
6161 // to load value if it is not present.
6262 Get (Key ) (Value , error )
6363
64- GetActive (Key ) (Value , error )
65-
6664 // Refresh loads new value for Key. If the Key already existed, the previous value
6765 // will continue to be returned by Get while the new value is loading.
6866 // If Key does not exist, this function will block until the value is loaded.
Original file line number Diff line number Diff line change 11module github.com/Comcast/goburrow-cache
22
3- go 1.17
3+ go 1.23
Original file line number Diff line number Diff line change 11package cache
22
33import (
4- "errors"
54 "sync"
65 "sync/atomic"
76 "time"
@@ -189,18 +188,6 @@ func (c *localCache) Get(k Key) (Value, error) {
189188 return en .getValue (), nil
190189}
191190
192- func (c * localCache ) GetActive (k Key ) (Value , error ) {
193- obj , err := c .Get (k )
194- if err != nil {
195- return nil , err
196- }
197- en := c .cache .get (k , sum (k ))
198- if en != nil && ! en .getInvalidated () {
199- return obj , nil
200- }
201- return nil , errors .New ("entry invalidated" )
202- }
203-
204191// GetAllKeys returns all keys.
205192func (c * localCache ) GetAllKeys () []interface {} {
206193 keys := make ([]interface {}, 0 , c .cache .len ())
You can’t perform that action at this time.
0 commit comments