public function loadLastModifiedCommitID($commit_id, $path_id, $time)
Search the graph cache for the most modification to a path.
int | $commit_id | The commit ID to search ancestors of. |
int | $path_id | The path ID to search for changes to. |
float | $time | Maximum number of seconds to spend trying to satisfy this query using the graph cache. By default, `0.5` (500ms). |
mixed | Commit ID, or `null` if no ancestors exist, or `false` if the graph cache was unable to determine the answer. |
private function getBucketKey($commit_id)
Get the bucket key for a given commit ID.
int | $commit_id | Commit ID. |
int | Bucket key. |
private function getBucketCacheKey($bucket_key)
Get the cache key for a given bucket key (from getBucketKey()).
int | $bucket_key | Bucket key. |
string | Cache key. |
private function getBucketSize()
Get the number of items per bucket.
int | Number of items to store per bucket. |
private function getBucketData($bucket_key, $rebuild_data)
Retrieve or build a graph cache bucket from the cache.
Normally, this operates as a readthrough cache call. It can also be used to force a cache update by passing the existing data to $rebuild_data.
int | $bucket_key | Bucket key, from @{method:getBucketKey}. |
mixed | $rebuild_data | Current data, to force a cache rebuild of this bucket. |
array | Data from the cache. |
private function rebuildBucket($bucket_key, $current_data)
Rebuild a cache bucket, amending existing data if available.
int | $bucket_key | Bucket key, from @{method:getBucketKey}. |
array | $current_data | Existing bucket data. |
array | Rebuilt bucket data. |