Nextcloud PHP API (master)

IShardMapper

Implementation of logic of mapping shard keys to shards.

Tags
since
30.0.0

Table of Contents

Methods

getShardForKey()  : int
Get the shard number for a given shard key and total shard count

Methods

getShardForKey()

Get the shard number for a given shard key and total shard count

public getShardForKey(int $key, int $count) : int
Parameters
$key : int
$count : int
Tags
since
30.0.0
Return values
int

        
On this page

Search results