MCPcopy Index your code
hub / github.com/tinode/chat / Upsert

Method Upsert

server/store/store.go:1085–1085  ·  view source on GitHub ↗

Upsert creates or updates a persistent cache entry.

(key string, value string, failOnDuplicate bool)

Source from the content-addressed store, hash-verified

1083 Get(key string) (string, error)
1084 // Upsert creates or updates a persistent cache entry.
1085 Upsert(key string, value string, failOnDuplicate bool) error
1086 // Delete deletes a single persistent cache entry.
1087 Delete(key string) error
1088 // Expire expires older entries with the specified key prefix.

Callers 2

AuthenticateMethod · 0.65
GenSecretMethod · 0.65

Implementers 3

pcacheMapperserver/store/store.go
MockPersistentCacheInterfaceserver/store/mock_store/mock_store.go
MockPersistentCacheInterfaceMockRecorderserver/store/mock_store/mock_store.go

Calls

no outgoing calls

Tested by

no test coverage detected