Skip to content

Commit

Permalink
Add GetParent for CacheKV
Browse files Browse the repository at this point in the history
  • Loading branch information
codchen committed Nov 16, 2023
1 parent a4e1d35 commit 576a2b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions store/cachekv/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,3 +486,7 @@ func (store *Store) isDeleted(key string) bool {
_, ok := store.deleted.Load(key)
return ok
}

func (store *Store) GetParent() types.KVStore {
return store.parent

Check warning on line 491 in store/cachekv/store.go

View check run for this annotation

Codecov / codecov/patch

store/cachekv/store.go#L490-L491

Added lines #L490 - L491 were not covered by tests
}

0 comments on commit 576a2b9

Please sign in to comment.