MCPcopy Index your code

hub / github.com/olric-data/olric / functions

Functions1,316 in github.com/olric-data/olric

↓ 202 callersMethodGet
Get gets the value for the given key. It returns ErrKeyNotFound if the DB does not contain the key. It's thread-safe. It is safe to modify the content
client.go:166
↓ 129 callersMethodPut
Put sets the value for the given key. It overwrites any previous value for that key, and it's thread-safe. The key has to be a string. value type is a
client.go:161
↓ 128 callersMethodShutdown
(ctx context.Context)
internal/service/service.go:24
↓ 127 callersMethodAddMember
(e *environment.Environment)
internal/testcluster/testcluster.go:121
↓ 122 callersMethodPrintf
Printf calls v.f.logger.Printf to print to the logger. Arguments are handled in the manner of fmt.Printf.
pkg/flog/flog.go:107
↓ 119 callersMethodV
V reports whether verbosity at the call site is at least the requested level. The returned value is a struct of type Verbose, which implements Printf
pkg/flog/flog.go:93
↓ 119 callersMethodaddMember
(t *testing.T)
olric_test.go:114
↓ 117 callersMethodLock
Lock sets a lock for the given key. Acquired lock is only for the key in this dmap. It returns immediately if it acquires the lock for the given key.
client.go:201
↓ 117 callersMethodUnlock
Unlock releases an acquired lock for the given key. It returns ErrNoSuchLock if there is no lock for the given key.
client.go:61
↓ 113 callersMethodString
()
internal/discovery/member.go:46
↓ 111 callersMethodThis
()
internal/cluster/routingtable/routingtable.go:126
↓ 110 callersFunctionnewTestOlricCluster
(t *testing.T)
olric_test.go:81
↓ 102 callersFunctionToKey
(i int)
internal/testutil/testutil.go:119
↓ 94 callersFunctionNew
(constructor func(e *environment.Environment) (service.Service, error))
internal/testcluster/testcluster.go:94
↓ 92 callersMethodCommand
(ctx context.Context)
internal/protocol/dmap.go:80
↓ 91 callersMethodNewDMap
NewDMap returns a new DMap client with the given options.
client.go:286
↓ 90 callersFunctionBytesToString
(b []byte)
internal/util/safe.go:32
↓ 89 callersFunctionWriteError
(conn redcon.Conn, err error)
internal/protocol/errors.go:98
↓ 65 callersFunctionNewClusterClient
NewClusterClient creates a new Client instance. It needs one node address at least to discover the whole cluster.
cluster_client.go:797
↓ 60 callersMethodClose
Close stops background routines and frees allocated resources.
cluster_client.go:663
↓ 60 callersMethodString
String returns the member name.
stats/stats.go:102
↓ 60 callersFunctionstringToCommand
(s string)
internal/protocol/dmap_test.go:27
↓ 57 callersMethodPartitionByID
PartitionByID returns the partition for the given HKey
internal/cluster/partitions/partitions.go:64
↓ 56 callersMethodKey
Key returns a key name from the distributed map.
client.go:51
↓ 55 callersFunctionNewConfig
()
internal/testutil/testutil.go:64
↓ 55 callersMethodRead
Read returns the current value of gauge.
internal/stats/stats.go:67
↓ 54 callersFunctionToVal
(i int)
internal/testutil/testutil.go:123
↓ 50 callersFunctionprocessProtocolError
processProtocolError processes protocol-related errors and translates them into defined application-level errors.
cluster_client.go:72
↓ 48 callersMethodPut
Put sets the value for the given key. It overwrites any previous value for that key, and it's thread-safe. The key has to be a string. value type is a
internal/dmap/put.go:401
↓ 46 callersMethodGet
Get gets the value for the given key. It returns ErrKeyNotFound if the DB does not contain the key. It's thread-safe. It is safe to modify the content
internal/dmap/get.go:371
↓ 44 callersMethodNewEmbeddedClient
NewEmbeddedClient creates and returns a new EmbeddedClient instance.
embedded_client.go:402
↓ 43 callersMethodHandleFunc
HandleFunc registers the handler function for the given command.
internal/server/mux.go:53
↓ 43 callersMethodNewDMap
NewDMap returns a new DMap client with the given options.
cluster_client.go:686
↓ 43 callersMethodServeMux
()
internal/server/server.go:187
↓ 42 callersMethodEncode
Encode encodes an entry into a binary form and returns the result.
pkg/storage/entry.go:50
↓ 40 callersMethodValue
Value returns the value as a byte slice.
pkg/storage/entry.go:31
↓ 38 callersMethodSet
(key string, value interface{})
internal/environment/environment.go:42
↓ 37 callersMethodSum64
([]byte)
hasher/hasher.go:36
↓ 35 callersFunctionNew
()
internal/kvstore/entry/entry.go:38
↓ 34 callersMethodNewDMap
(name string, options ...DMapOption)
embedded_client.go:295
↓ 34 callersFunctionerrWrongNumber
(args [][]byte)
internal/protocol/errors.go:103
↓ 33 callersMethodAdd
Add adds a new item to the Round-Robin scheduler.
internal/roundrobin/round_robin.go:68
↓ 33 callersFunctionScan
Scan parses bytes `b` to `v` with appropriate type. nolint:gocyclo
internal/resp/scan.go:40
↓ 31 callersMethodReset
Reset sets zero to the underlying gauge.
internal/stats/stats.go:72
↓ 31 callersMethodSetKey
SetKey accepts strings as a key and inserts the key into the underlying data structure.
pkg/storage/entry.go:21
↓ 31 callersFunctionbkey
(i int)
internal/kvstore/kvstore_test.go:33
↓ 30 callersMethodSetTTL
SetTTL sets TTL to an entry.
pkg/storage/entry.go:34
↓ 30 callersMethodSetValue
SetValue accepts a byte slice as a value and inserts the value into the underlying data structure.
pkg/storage/entry.go:28
↓ 29 callersMethodClose
Close stops background routines and frees allocated resources.
client.go:242
↓ 28 callersMethodCompareByID
CompareByID returns true if two members denote the same member in the cluster.
internal/discovery/member.go:35
↓ 28 callersMethodDelete
Delete deletes values for the given keys. Delete will not return error if key doesn't exist. It's thread-safe. It is safe to modify the contents of th
client.go:171
↓ 27 callersMethodResult
Result returns a response for the pipelined Put command.
pipeline.go:98
↓ 26 callersFunctionConvertError
(err error)
internal/protocol/errors.go:81
↓ 25 callersMethodIncrease
Increase increases the gauge by delta.
internal/stats/stats.go:57
↓ 25 callersMethodMap
()
internal/cluster/partitions/partition.go:42
↓ 25 callersMethodTTL
TTL returns the current TTL for an entry.
pkg/storage/entry.go:37
↓ 24 callersFunctionNewEnvironment
(c *config.Config)
internal/testcluster/testcluster.go:47
↓ 24 callersMethodRange
Range implements a loop over the storage engine
pkg/storage/engine.go:115
↓ 24 callersMethodStats
()
internal/cluster/partitions/fragment.go:24
↓ 24 callersFunctiontestKVStore
(t *testing.T, c *storage.Config)
internal/kvstore/kvstore_test.go:41
↓ 23 callersMethodSanitize
Sanitize methods should be used to set defaults.
config/config.go:35
↓ 23 callersMethodString
()
internal/cluster/partitions/partitions.go:25
↓ 22 callersMethodAdd
(member discovery.Member)
internal/cluster/routingtable/members.go:35
↓ 22 callersMethodDuration
()
get_response.go:173
↓ 22 callersMethodaddNewMember
(t *testing.T)
internal/discovery/discovery_test.go:52
↓ 21 callersMethodaddMemberWithConfig
(t *testing.T, c *config.Config)
olric_test.go:96
↓ 19 callersMethodDiscovery
()
internal/cluster/routingtable/routingtable.go:122
↓ 19 callersMethodIsBootstrapped
()
internal/cluster/routingtable/routingtable.go:187
↓ 19 callersMethodLock
Lock prepares a token and env, then calls tryLock
internal/dmap/lock.go:138
↓ 19 callersMethodResult
()
internal/testutil/mockfragment/mockfragment.go:91
↓ 19 callersMethodScan
(v interface{})
get_response.go:31
↓ 19 callersFunctionSetError
(prefix string, err error)
internal/protocol/errors.go:43
↓ 18 callersMethodWriteString
(s string)
internal/resp/encoder.go:42
↓ 18 callersMethodgetOrCreateDMap
getOrCreate is a shortcut function to create a new DMap or get an already initialized DMap instance.
internal/dmap/dmap.go:107
↓ 17 callersFunctionbval
(i int)
internal/kvstore/kvstore_test.go:37
↓ 17 callersFunctionnewEnv
(ctx context.Context)
internal/dmap/env.go:37
↓ 16 callersMethodGetCoordinator
GetCoordinator returns the oldest node in the memberlist.
internal/discovery/discovery.go:254
↓ 16 callersFunctionHKey
(name, key string)
internal/cluster/partitions/hkey.go:35
↓ 16 callersMethodKind
()
internal/cluster/partitions/partition.go:34
↓ 16 callersMethodOwner
Owner returns partition Owner. It's not thread-safe.
internal/cluster/partitions/partition.go:47
↓ 16 callersMethodSetTimestamp
SetTimestamp sets the current timestamp to an entry.
pkg/storage/entry.go:40
↓ 16 callersMethodValidate
Validate method should be used to find configuration errors.
config/config.go:38
↓ 16 callersMethodaddNode
(c *config.Config)
internal/cluster/routingtable/routingtable_test.go:72
↓ 15 callersMethodClose
()
internal/cluster/partitions/fragment.go:28
↓ 15 callersFunctionNewInt64Counter
NewInt64Counter returns a new Int64Counter
internal/stats/stats.go:26
↓ 15 callersMethodPipeline
Pipeline is a mechanism to realise Redis Pipeline technique. Pipelining is a technique to extremely speed up processing by packing operations to batc
client.go:239
↓ 15 callersMethodUint64
()
get_response.go:128
↓ 14 callersMethodLength
Length returns the count of items
internal/roundrobin/round_robin.go:89
↓ 14 callersMethodMembers
()
internal/cluster/routingtable/routingtable.go:146
↓ 14 callersFunctionNewGet
(dmap, key string)
internal/protocol/dmap.go:221
↓ 14 callersMethodNext
Next returns true if there is more key in the iterator implementation. Otherwise, it returns false.
client.go:48
↓ 14 callersMethodScan
Scan returns an iterator to loop over the keys. Available scan options: * Count * Match
client.go:221
↓ 14 callersFunctionsetupTable
()
internal/kvstore/table/table_test.go:33
↓ 13 callersMethodID
()
internal/cluster/partitions/partition.go:38
↓ 13 callersFunctionNewScan
(partID uint64, dmap string, cursor uint64)
internal/protocol/dmap.go:539
↓ 12 callersMethodCompareByName
CompareByName returns true if the two members has the same name in the cluster. This function is intended to redirect the requests to the partition ow
internal/discovery/member.go:42
↓ 12 callersMethodExec
Exec executes all queued commands using one client-server roundtrip per partition.
pipeline.go:514
↓ 12 callersFunctionNew
(e encoder)
internal/resp/encoder.go:52
↓ 12 callersMethodPartitionByHKey
PartitionByHKey returns the partition for the given HKey
internal/cluster/partitions/partitions.go:74
↓ 12 callersMethodPublish
Publish a message to subscribers
internal/pubsub/pubsub.go:58
next →1–100 of 1,316, ranked by callers