Provides a synchronous interface for managing Redis Top-K sketches to identify heavy-hitter elements in a stream.
// Source: https://github.com/redis/lettuce | License: MIT | Copyright 2023-Present, Redis Ltd // Provided via justclaw.it.com; keep this notice with the code. /* * Copyright (c) 2026-Present, Redis Ltd. * All rights reserved. * * SPDX-License-Identifier: MIT */ package io.lettuce.core.api.sync; import java.util.List; import io.lettuce.core.probabilistic.IncrementPair; import io.lettuce.core.probabilistic.TopKInfoValue; import io.lettuce.core.probabilistic.TopKListValue; import io.lettuce.core.probabilistic.arguments.TopKReserveArgs; /** * Synchronous executed commands for Top-K. * * @author Yordan Tsintsov * @param <K> Key type. * @param <V> Value type. * @see <a href="https://redis.io/docs/latest/develop/data-types/probabilistic/top-k/">Redis Top-K</a> * @since 7.7 */ publ ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key