Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/olric-data/olric
/ functions
Functions
1,316 in github.com/olric-data/olric
⨍
Functions
1,316
◇
Types & classes
192
↓ 12 callers
Function
TryWithInterval
(max int, interval time.Duration, f func() error)
internal/testutil/testutil.go:96
↓ 12 callers
Method
getPartitionByHKey
(hkey uint64, kind partitions.Kind)
internal/dmap/dmap.go:115
↓ 12 callers
Method
smartPick
(dmap, key string)
cluster_client.go:130
↓ 11 callers
Method
Add
Add adds a new key/value pair to Config
pkg/storage/config.go:39
↓ 11 callers
Method
LockWithTimeout
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 callers
Function
New
(size uint64)
internal/kvstore/table/table.go:70
↓ 11 callers
Function
New
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 callers
Function
NewPut
(dmap, key string, value []byte)
internal/protocol/dmap.go:42
↓ 11 callers
Method
Owners
Owners loads the partition owners from atomic.Value and returns.
internal/cluster/partitions/partition.go:69
↓ 11 callers
Method
Start
()
internal/service/service.go:22
↓ 11 callers
Method
Subscribe
Subscribe a connection to PubSub
internal/pubsub/pubsub.go:48
↓ 11 callers
Method
loadFragment
(part *partitions.Partition)
internal/dmap/fragment.go:173
↓ 10 callers
Method
Delete
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 callers
Function
NewEngine
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 callers
Method
SetReplica
()
internal/protocol/dmap.go:557
↓ 10 callers
Method
State
()
internal/kvstore/table/table.go:101
↓ 10 callers
Method
put
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 callers
Function
New
(count uint64, kind Kind)
internal/cluster/partitions/partitions.go:47
↓ 9 callers
Function
NewClient
(c *config.Client)
internal/server/client.go:36
↓ 9 callers
Function
NewLock
(dmap, key string, deadline float64)
internal/protocol/dmap.go:810
↓ 9 callers
Method
Ok
Ok will return true if this log level is enabled, guarded by the value of verbosity level.
pkg/flog/flog.go:101
↓ 9 callers
Function
ParseScanCommand
(cmd redcon.Command)
internal/protocol/dmap.go:584
↓ 9 callers
Method
SetCount
(count int)
internal/protocol/dmap.go:552
↓ 9 callers
Method
Timestamp
Timestamp returns the current timestamp for an entry.
pkg/storage/entry.go:43
↓ 9 callers
Function
newTestCluster
(t *testing.T)
internal/discovery/discovery_test.go:39
↓ 9 callers
Function
newTestCluster
()
internal/cluster/routingtable/routingtable_test.go:64
↓ 8 callers
Method
GetMembers
GetMembers returns a full list of known alive nodes.
internal/discovery/discovery.go:212
↓ 8 callers
Method
LastAccess
()
pkg/storage/entry.go:47
↓ 8 callers
Function
New
New creates a new Locker
internal/locker/locker.go:65
↓ 8 callers
Function
NewClient
NewClient returns a new configuration object for clients.
config/client.go:110
↓ 8 callers
Function
NewDel
(dmap string, keys ...string)
internal/protocol/dmap.go:322
↓ 8 callers
Method
PartitionOwnersByHKey
PartitionOwnersByHKey loads the partition owners list for a given hkey.
internal/cluster/partitions/partitions.go:80
↓ 8 callers
Method
Read
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 callers
Method
SetMatch
(match string)
internal/protocol/dmap.go:547
↓ 8 callers
Method
Signature
()
internal/cluster/routingtable/routingtable.go:154
↓ 8 callers
Method
addCommand
(key string, cmd redis.Cmder)
pipeline.go:71
↓ 8 callers
Function
convertDMapError
(err error)
olric.go:468
↓ 8 callers
Method
int
(n int64)
internal/resp/encoder.go:131
↓ 7 callers
Method
Get
(addr string)
internal/server/client.go:62
↓ 7 callers
Method
GetPut
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 callers
Method
GetTTL
GetTTL extracts TTL of an entry.
pkg/storage/engine.go:86
↓ 7 callers
Method
Int
()
get_response.go:38
↓ 7 callers
Method
NewEntry
NewEntry returns a new Entry interface implemented by the current storage engine implementation.
pkg/storage/engine.go:64
↓ 7 callers
Function
NewIncr
(dmap, key string, delta int)
internal/protocol/dmap.go:641
↓ 7 callers
Function
NewPing
()
internal/protocol/system.go:31
↓ 7 callers
Function
NewServer
(c *config.Config)
internal/testutil/testutil.go:86
↓ 7 callers
Function
NewUnlock
(dmap, key, token string)
internal/protocol/dmap.go:898
↓ 7 callers
Method
OwnedPartitionCount
()
internal/cluster/routingtable/routingtable.go:169
↓ 7 callers
Method
OwnerCount
OwnerCount returns the current Owner count of a partition.
internal/cluster/partitions/partition.go:60
↓ 7 callers
Function
ParsePutCommand
(cmd redcon.Command)
internal/protocol/dmap.go:118
↓ 7 callers
Method
SetPX
(px int64)
internal/protocol/dmap.go:55
↓ 7 callers
Method
SetRaw
()
internal/protocol/dmap.go:228
↓ 7 callers
Method
Start
Start can be used to run background services before starting operation.
pkg/storage/engine.go:60
↓ 7 callers
Function
ToAddress
ToAddress is a PubSubOption for using a specific cluster member to publish messages to a channel.
client.go:274
↓ 7 callers
Method
Unlock
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 callers
Method
bytes
(b []byte)
internal/resp/encoder.go:115
↓ 7 callers
Method
loadOrCreateFragment
(part *partitions.Partition)
internal/dmap/fragment.go:153
↓ 7 callers
Function
newServer
(t *testing.T)
internal/server/server_test.go:85
↓ 7 callers
Function
newTestEnvironment
(c *config.Config)
internal/cluster/balancer/balancer_test.go:39
↓ 6 callers
Method
Check
Check returns true, if the key exists.
pkg/storage/engine.go:112
↓ 6 callers
Method
Decr
Decr atomically decrements the key by delta. The return value is the new value after being decremented or an error.
client.go:179
↓ 6 callers
Method
GetLastAccess
GetLastAccess extracts LastAccess of an entry.
pkg/storage/engine.go:89
↓ 6 callers
Method
Incr
Incr atomically increments the key by delta. The return value is the new value after being incremented or an error.
client.go:175
↓ 6 callers
Method
IncrByFloat
IncrByFloat atomically increments the key by delta. The return value is the new value after being incremented or an error.
client.go:187
↓ 6 callers
Method
IsCoordinator
IsCoordinator returns true if the caller is the coordinator node.
internal/discovery/discovery.go:264
↓ 6 callers
Method
Lease
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 callers
Method
Length
()
internal/cluster/routingtable/members.go:59
↓ 6 callers
Method
ListenAndServe
ListenAndServe starts the TCP server, initializes internal components, and begins accepting connections.
internal/server/server.go:192
↓ 6 callers
Function
New
()
internal/environment/environment.go:25
↓ 6 callers
Function
NewClusterRoutingTable
()
internal/protocol/cluster.go:26
↓ 6 callers
Function
NewConfig
NewConfig returns a new Config
pkg/storage/config.go:29
↓ 6 callers
Function
NewDecr
(dmap, key string, delta int)
internal/protocol/dmap.go:679
↓ 6 callers
Function
NewDelEntry
(dmap, key string)
internal/protocol/dmap.go:358
↓ 6 callers
Function
NewDestroy
(dmap string)
internal/protocol/dmap.go:488
↓ 6 callers
Function
NewFlogger
(c *config.Config)
internal/testutil/testutil.go:48
↓ 6 callers
Function
NewGetPut
(dmap, key string, value []byte)
internal/protocol/dmap.go:715
↓ 6 callers
Function
NewMember
(c *config.Config)
internal/discovery/member.go:68
↓ 6 callers
Method
NewPubSub
NewPubSub returns a new PubSub client with the given options.
cluster_client.go:681
↓ 6 callers
Method
PSubscribe
(ctx context.Context, channels ...string)
pubsub.go:62
↓ 6 callers
Function
ParseInt
(b []byte, base int, bitSize int)
internal/util/strconv.go:35
↓ 6 callers
Function
ParsePublishCommand
(cmd redcon.Command)
internal/protocol/pubsub.go:45
↓ 6 callers
Method
Pick
()
internal/server/client.go:105
↓ 6 callers
Method
Sanitize
Sanitize sets default values to empty configuration variables, if it's possible.
config/client.go:122
↓ 6 callers
Method
ScanRegexMatch
ScanRegexMatch is the same with the Scan method, but it supports regular expressions on keys.
pkg/storage/engine.go:126
↓ 6 callers
Method
SetOwners
(owners []discovery.Member)
internal/cluster/partitions/partition.go:77
↓ 6 callers
Method
Uint32
()
get_response.go:119
↓ 6 callers
Method
UpdateEagerly
()
internal/cluster/routingtable/routingtable.go:231
↓ 6 callers
Method
Write
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 callers
Method
addNode
(e *environment.Environment)
internal/cluster/balancer/balancer_test.go:86
↓ 6 callers
Function
isKeyExpired
(ttl int64)
internal/dmap/dmap.go:128
↓ 6 callers
Function
newMembers
()
internal/cluster/routingtable/members.go:29
↓ 6 callers
Function
testScanIterator
(t *testing.T, s *Service, allKeys map[string]bool, sc *ScanConfig)
internal/dmap/scan_test.go:28
↓ 5 callers
Method
Command
(ctx context.Context)
internal/protocol/dmap.go:562
↓ 5 callers
Method
Compaction
()
internal/cluster/partitions/fragment.go:26
↓ 5 callers
Method
Expire
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 callers
Function
GetFreePort
()
internal/testutil/testutil.go:31
↓ 5 callers
Method
GetKey
GetKey extracts key of an entry.
pkg/storage/engine.go:92
↓ 5 callers
Method
Join
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 callers
Function
NX
NX only sets the key if it does not already exist.
client.go:104
↓ 5 callers
Method
Name
Name exposes name of the DMap.
client.go:156
← previous
next →
101–200 of 1,316, ranked by callers