MCPcopy Create free account
hub / github.com/datastax/cql-proxy / PreparedCache

Interface PreparedCache

proxycore/session.go:38–43  ·  view source on GitHub ↗

PreparedCache a thread-safe cache for storing prepared queries.

Source from the content-addressed store, hash-verified

36
37// PreparedCache a thread-safe cache for storing prepared queries.
38type PreparedCache interface {
39 // Store add an entry to the cache.
40 Store(id string, entry *PreparedEntry)
41 // Load retrieves an entry from the cache. `ok` is true if the entry is present; otherwise it's false.
42 Load(id string) (entry *PreparedEntry, ok bool)
43}
44
45type SessionConfig struct {
46 ReconnectPolicy ReconnectPolicy

Callers 16

registerForEventsMethod · 0.65
TestProxy_UnpreparedFunction · 0.65
StoreMethod · 0.65
ServeMethod · 0.65
OnEventMethod · 0.65
isIdempotentMethod · 0.65
isSelectMethod · 0.65
TestProxy_UnpreparedFunction · 0.65

Implementers 2

defaultPreparedCacheproxy/proxy.go
testPrepareCacheproxycore/clientconn_test.go

Calls

no outgoing calls

Tested by

no test coverage detected