Git Product home page Git Product logo

tairzset's People

Contributors

chenyang8094 avatar guoxiangcn avatar rinchannowww avatar yangbodong22011 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tairzset's Issues

Does it support redis 7

I notice that ReadMe file tells it support redis 5.x and 6.x
I want to know whether it support redis 7

[NEW] Ability to Increment and Store different parts in one command

Fair leaderboards with timestamp and updates

Hi, another feature request for leaderboard here.

It is common to order players with same highscore by timestamp, so that the first one to get this score is higher in rank. This is easily done with this module.

The issue is in increment command, when you add some score points what you actually want for timestamp part is not to increment it, but to update it to current time.

Suppose we have this scores for id

1000#1500000000

after this operation (illustration only, not the desired syntax):

exzincrbyandset key +10#=1689158754 id

result should be

1010#1689158754

Feature Request: Different Sort Options for Scores

Hi, Thanks for your nice work!

I think there might be a use case for having different scores being compared in independent orders. Let's say I want to create a leaderboard for my game and I have a highscore with an ascending score (meaning the higher the score, the higher the rank) and for the same scores I would compare the time of the score (which the lower the time the higher the rank). From what I see with your module, we have to accomplish this with saving either the time or the highscore with some math function to reverse it's meaning and then use the module. But because I think this feature would be used alot, It would be worth implementation. Can this be implemented?

Thanks

固定容量的zset

场景:
在某些场景下,我们需要固定容量的zset,hash,或者set,一个简单的例子就是自由聊天室,只允许最大固定人数的群成员,过期淘汰或者超过容量淘汰。
原理:
类似于redis的淘汰策略,检查到容量超标了,淘汰掉有效期最小的元素.

添加对score单个维度操作的支持

zrange:
可以指定返回某个特定维度的值
zadd:
可以修改某个特定维度的值

类似于将zset的score当成一个记录,A#B#C,此时,能够根据score的添加来更新某些特定的score. 比如,ZADD KEY NX 1#2#3 EX 1#2 MEMBER

[ASoC]新命令开发支持

活动官网

https://asoc2022.opensource.alibaba.com/

题目描述

TairZset作为redis原生zset的一个多增增强结构,前期只实现了一些基本的命令, 还有部分命令(使用频率相对较低)没有支持,
为了更好的对齐redis原生zset语义,需要补全这些命令的实现和对应的测试。

任务目标

1、开发支持EXZUNIONSTORE、EXZUNION、EXZSCAN、EXZDIFF、EXZDIFFSTORE、EXZINTER、EXZINTERSTORE、EXZRANDMEMBER、EXZMSCORE等确实命令(对齐到redis 5.0版本即可)
2、添加对应的tcl测试

项目技术要求

熟悉c、tcl,了解redis zset实现原理

题目难度

导师信息

Qu Dong ,@chenyang8094,ASoC Mentor, redis contributor.
[email protected](联系导师请附上个人简历)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.