Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/golang/groupcache
/ types & classes
Types & classes
43 in github.com/golang/groupcache
⨍
Functions
191
◇
Types & classes
43
↓ 6 callers
FuncType
GetterFunc
A GetterFunc implements Getter with a function.
groupcache.go:52
↓ 2 callers
Interface
Key
A Key may be any value that is comparable. See http://golang.org/ref/spec#Comparison_operators
lru/lru.go:37
↓ 1 callers
TypeAlias
fakePeers
groupcache_test.go:243
TypeAlias
AtomicInt
An AtomicInt is an int64 to be accessed atomically.
groupcache.go:479
Struct
ByteView
A ByteView holds an immutable view of bytes. Internally it wraps either a []byte or a string, but that detail is invisible to callers. A ByteView is
byteview.go:32
Struct
Cache
Cache is an LRU cache. It is not safe for concurrent access.
lru/lru.go:23
Struct
CacheStats
CacheStats are returned by stats accessors on Group.
groupcache.go:496
Struct
CacheStats
testpb/test.pb.go:82
TypeAlias
CacheType
CacheType represents a type of cache.
groupcache.go:372
Struct
Empty
testpb/test.pb.go:226
Struct
GetRequest
groupcachepb/groupcache.pb.go:16
Struct
GetResponse
groupcachepb/groupcache.pb.go:40
Interface
Getter
A Getter loads data for a key.
groupcache.go:41
Struct
Group
A Group is a cache namespace and associated data loaded spread over a group of 1 or more machines.
groupcache.go:142
Struct
Group
Group represents a class of work and forms a namespace in which units of work can be executed with duplicate suppression.
singleflight/singleflight.go:32
Struct
HTTPPool
HTTPPool implements PeerPicker for a pool of HTTP peers.
http.go:39
Struct
HTTPPoolOptions
HTTPPoolOptions are the configurations of a HTTPPool.
http.go:62
FuncType
Hash
func(data []byte) uint32
consistenthash/consistenthash.go:26
Struct
Map
consistenthash/consistenthash.go:28
Struct
NoPeers
NoPeers is an implementation of PeerPicker that never finds a peer.
peers.go:45
Interface
PeerPicker
PeerPicker is the interface that must be implemented to locate the peer that owns a specific key.
peers.go:37
Interface
ProtoGetter
ProtoGetter is the interface that must be implemented by a peer.
peers.go:31
Interface
Sink
A Sink receives data from a Get call. Implementation of Getter must call exactly one of the Set methods on success.
sinks.go:29
Struct
Stats
Stats are per-group statistics.
groupcache.go:189
Struct
StatsResponse
testpb/test.pb.go:130
Struct
TestMessage
testpb/test.pb.go:16
Struct
TestRequest
testpb/test.pb.go:40
Struct
TestResponse
testpb/test.pb.go:66
Struct
allocBytesSink
sinks.go:218
Struct
byteViewSink
sinks.go:113
Struct
cache
cache is a wrapper around an *lru.Cache that adds synchronization, makes values always be ByteView, and counts the size of all keys and values.
groupcache.go:400
Struct
call
call is an in-flight or completed Do call
singleflight/singleflight.go:24
Struct
complexStruct
lru/lru_test.go:29
Struct
entry
lru/lru.go:39
Struct
fakePeer
groupcache_test.go:229
Interface
flightGroup
flightGroup is defined as an interface which flightgroup.Group satisfies. We define this so that we may test with an alternate implementation.
groupcache.go:183
Struct
httpGetter
http.go:186
Struct
orderedFlightGroup
orderedFlightGroup allows the caller to force the schedule of when orig.Do will be called. This is useful to serialize calls such that singleflight c
groupcache_test.go:371
Struct
protoSink
sinks.go:161
Struct
simpleStruct
lru/lru_test.go:24
Struct
stringSink
sinks.go:73
Struct
truncBytesSink
sinks.go:277
Interface
viewSetter
sinks.go:56