MCPcopy Index your code

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

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

↓ 12 callersFunctionTryWithInterval
(max int, interval time.Duration, f func() error)
internal/testutil/testutil.go:96
↓ 12 callersMethodgetPartitionByHKey
(hkey uint64, kind partitions.Kind)
internal/dmap/dmap.go:115
↓ 12 callersMethodsmartPick
(dmap, key string)
cluster_client.go:130
↓ 11 callersMethodAdd
Add adds a new key/value pair to Config
pkg/storage/config.go:39
↓ 11 callersMethodLockWithTimeout
LockWithTimeout sets a lock for the given key. If the lock is still unreleased the end of given period of time, it automatically releases the lock. Ac
client.go:213
↓ 11 callersFunctionNew
(size uint64)
internal/kvstore/table/table.go:70
↓ 11 callersFunctionNew
New returns a Config with sane defaults. If you change a configuration parameter, please run Sanitize and Validate functions respectively. New takes
config/config.go:533
↓ 11 callersFunctionNewPut
(dmap, key string, value []byte)
internal/protocol/dmap.go:42
↓ 11 callersMethodOwners
Owners loads the partition owners from atomic.Value and returns.
internal/cluster/partitions/partition.go:69
↓ 11 callersMethodStart
()
internal/service/service.go:22
↓ 11 callersMethodSubscribe
Subscribe a connection to PubSub
internal/pubsub/pubsub.go:48
↓ 11 callersMethodloadFragment
(part *partitions.Partition)
internal/dmap/fragment.go:173
↓ 10 callersMethodDelete
Delete deletes the value for the given key. Delete will not return error if key doesn't exist. It's thread-safe. It is safe to modify the contents of
internal/dmap/delete.go:174
↓ 10 callersFunctionNewEngine
NewEngine initializes Engine with sane defaults. Olric will set its own storage engine implementation and related configuration, if there is no other
config/engine.go:41
↓ 10 callersMethodSetReplica
()
internal/protocol/dmap.go:557
↓ 10 callersMethodState
()
internal/kvstore/table/table.go:101
↓ 10 callersMethodput
put controls every write operation in Olric. It redirects the requests to its owner, if the key belongs to another host.
internal/dmap/put.go:362
↓ 9 callersFunctionNew
(count uint64, kind Kind)
internal/cluster/partitions/partitions.go:47
↓ 9 callersFunctionNewClient
(c *config.Client)
internal/server/client.go:36
↓ 9 callersFunctionNewLock
(dmap, key string, deadline float64)
internal/protocol/dmap.go:810
↓ 9 callersMethodOk
Ok will return true if this log level is enabled, guarded by the value of verbosity level.
pkg/flog/flog.go:101
↓ 9 callersFunctionParseScanCommand
(cmd redcon.Command)
internal/protocol/dmap.go:584
↓ 9 callersMethodSetCount
(count int)
internal/protocol/dmap.go:552
↓ 9 callersMethodTimestamp
Timestamp returns the current timestamp for an entry.
pkg/storage/entry.go:43
↓ 9 callersFunctionnewTestCluster
(t *testing.T)
internal/discovery/discovery_test.go:39
↓ 9 callersFunctionnewTestCluster
()
internal/cluster/routingtable/routingtable_test.go:64
↓ 8 callersMethodGetMembers
GetMembers returns a full list of known alive nodes.
internal/discovery/discovery.go:212
↓ 8 callersMethodLastAccess
()
pkg/storage/entry.go:47
↓ 8 callersFunctionNew
New creates a new Locker
internal/locker/locker.go:65
↓ 8 callersFunctionNewClient
NewClient returns a new configuration object for clients.
config/client.go:110
↓ 8 callersFunctionNewDel
(dmap string, keys ...string)
internal/protocol/dmap.go:322
↓ 8 callersMethodPartitionOwnersByHKey
PartitionOwnersByHKey loads the partition owners list for a given hkey.
internal/cluster/partitions/partitions.go:80
↓ 8 callersMethodRead
Read reads data into the provided byte slice, updates the read bytes counter, and returns the number of bytes read.
internal/server/server.go:103
↓ 8 callersMethodSetMatch
(match string)
internal/protocol/dmap.go:547
↓ 8 callersMethodSignature
()
internal/cluster/routingtable/routingtable.go:154
↓ 8 callersMethodaddCommand
(key string, cmd redis.Cmder)
pipeline.go:71
↓ 8 callersFunctionconvertDMapError
(err error)
olric.go:468
↓ 8 callersMethodint
(n int64)
internal/resp/encoder.go:131
↓ 7 callersMethodGet
(addr string)
internal/server/client.go:62
↓ 7 callersMethodGetPut
GetPut atomically sets the key to value and returns the old value stored at key. It returns nil if there is no previous value.
client.go:183
↓ 7 callersMethodGetTTL
GetTTL extracts TTL of an entry.
pkg/storage/engine.go:86
↓ 7 callersMethodInt
()
get_response.go:38
↓ 7 callersMethodNewEntry
NewEntry returns a new Entry interface implemented by the current storage engine implementation.
pkg/storage/engine.go:64
↓ 7 callersFunctionNewIncr
(dmap, key string, delta int)
internal/protocol/dmap.go:641
↓ 7 callersFunctionNewPing
()
internal/protocol/system.go:31
↓ 7 callersFunctionNewServer
(c *config.Config)
internal/testutil/testutil.go:86
↓ 7 callersFunctionNewUnlock
(dmap, key, token string)
internal/protocol/dmap.go:898
↓ 7 callersMethodOwnedPartitionCount
()
internal/cluster/routingtable/routingtable.go:169
↓ 7 callersMethodOwnerCount
OwnerCount returns the current Owner count of a partition.
internal/cluster/partitions/partition.go:60
↓ 7 callersFunctionParsePutCommand
(cmd redcon.Command)
internal/protocol/dmap.go:118
↓ 7 callersMethodSetPX
(px int64)
internal/protocol/dmap.go:55
↓ 7 callersMethodSetRaw
()
internal/protocol/dmap.go:228
↓ 7 callersMethodStart
Start can be used to run background services before starting operation.
pkg/storage/engine.go:60
↓ 7 callersFunctionToAddress
ToAddress is a PubSubOption for using a specific cluster member to publish messages to a channel.
client.go:274
↓ 7 callersMethodUnlock
Unlock takes key and token and tries to unlock the key. It redirects the request to the partition owner, if required.
internal/dmap/lock.go:74
↓ 7 callersMethodbytes
(b []byte)
internal/resp/encoder.go:115
↓ 7 callersMethodloadOrCreateFragment
(part *partitions.Partition)
internal/dmap/fragment.go:153
↓ 7 callersFunctionnewServer
(t *testing.T)
internal/server/server_test.go:85
↓ 7 callersFunctionnewTestEnvironment
(c *config.Config)
internal/cluster/balancer/balancer_test.go:39
↓ 6 callersMethodCheck
Check returns true, if the key exists.
pkg/storage/engine.go:112
↓ 6 callersMethodDecr
Decr atomically decrements the key by delta. The return value is the new value after being decremented or an error.
client.go:179
↓ 6 callersMethodGetLastAccess
GetLastAccess extracts LastAccess of an entry.
pkg/storage/engine.go:89
↓ 6 callersMethodIncr
Incr atomically increments the key by delta. The return value is the new value after being incremented or an error.
client.go:175
↓ 6 callersMethodIncrByFloat
IncrByFloat atomically increments the key by delta. The return value is the new value after being incremented or an error.
client.go:187
↓ 6 callersMethodIsCoordinator
IsCoordinator returns true if the caller is the coordinator node.
internal/discovery/discovery.go:264
↓ 6 callersMethodLease
Lease sets or updates the timeout of the acquired lock for the given key. It returns ErrNoSuchLock if there is no lock for the given key.
client.go:65
↓ 6 callersMethodLength
()
internal/cluster/routingtable/members.go:59
↓ 6 callersMethodListenAndServe
ListenAndServe starts the TCP server, initializes internal components, and begins accepting connections.
internal/server/server.go:192
↓ 6 callersFunctionNew
()
internal/environment/environment.go:25
↓ 6 callersFunctionNewClusterRoutingTable
()
internal/protocol/cluster.go:26
↓ 6 callersFunctionNewConfig
NewConfig returns a new Config
pkg/storage/config.go:29
↓ 6 callersFunctionNewDecr
(dmap, key string, delta int)
internal/protocol/dmap.go:679
↓ 6 callersFunctionNewDelEntry
(dmap, key string)
internal/protocol/dmap.go:358
↓ 6 callersFunctionNewDestroy
(dmap string)
internal/protocol/dmap.go:488
↓ 6 callersFunctionNewFlogger
(c *config.Config)
internal/testutil/testutil.go:48
↓ 6 callersFunctionNewGetPut
(dmap, key string, value []byte)
internal/protocol/dmap.go:715
↓ 6 callersFunctionNewMember
(c *config.Config)
internal/discovery/member.go:68
↓ 6 callersMethodNewPubSub
NewPubSub returns a new PubSub client with the given options.
cluster_client.go:681
↓ 6 callersMethodPSubscribe
(ctx context.Context, channels ...string)
pubsub.go:62
↓ 6 callersFunctionParseInt
(b []byte, base int, bitSize int)
internal/util/strconv.go:35
↓ 6 callersFunctionParsePublishCommand
(cmd redcon.Command)
internal/protocol/pubsub.go:45
↓ 6 callersMethodPick
()
internal/server/client.go:105
↓ 6 callersMethodSanitize
Sanitize sets default values to empty configuration variables, if it's possible.
config/client.go:122
↓ 6 callersMethodScanRegexMatch
ScanRegexMatch is the same with the Scan method, but it supports regular expressions on keys.
pkg/storage/engine.go:126
↓ 6 callersMethodSetOwners
(owners []discovery.Member)
internal/cluster/partitions/partition.go:77
↓ 6 callersMethodUint32
()
get_response.go:119
↓ 6 callersMethodUpdateEagerly
()
internal/cluster/routingtable/routingtable.go:231
↓ 6 callersMethodWrite
Write sends data over the underlying connection and updates the total written bytes counter. It returns the number of bytes written and any error enco
internal/server/server.go:92
↓ 6 callersMethodaddNode
(e *environment.Environment)
internal/cluster/balancer/balancer_test.go:86
↓ 6 callersFunctionisKeyExpired
(ttl int64)
internal/dmap/dmap.go:128
↓ 6 callersFunctionnewMembers
()
internal/cluster/routingtable/members.go:29
↓ 6 callersFunctiontestScanIterator
(t *testing.T, s *Service, allKeys map[string]bool, sc *ScanConfig)
internal/dmap/scan_test.go:28
↓ 5 callersMethodCommand
(ctx context.Context)
internal/protocol/dmap.go:562
↓ 5 callersMethodCompaction
()
internal/cluster/partitions/fragment.go:26
↓ 5 callersMethodExpire
Expire updates the expiry for the given key. It returns ErrKeyNotFound if the DB does not contain the key. It's thread-safe.
client.go:191
↓ 5 callersFunctionGetFreePort
()
internal/testutil/testutil.go:31
↓ 5 callersMethodGetKey
GetKey extracts key of an entry.
pkg/storage/engine.go:92
↓ 5 callersMethodJoin
Join is used to take an existing Memberlist and attempt to Join a cluster by contacting all the given hosts and performing a state sync. Initially, th
internal/discovery/discovery.go:196
↓ 5 callersFunctionNX
NX only sets the key if it does not already exist.
client.go:104
↓ 5 callersMethodName
Name exposes name of the DMap.
client.go:156
← previousnext →101–200 of 1,316, ranked by callers