Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing command LRANGE #8

Open
hit9 opened this issue Jul 25, 2014 · 6 comments
Open

missing command LRANGE #8

hit9 opened this issue Jul 25, 2014 · 6 comments

Comments

@hit9
Copy link

hit9 commented Jul 25, 2014

Hi, I like this project, but I need command LRANGE, I didn't find it..

@coleifer
Copy link

It would also be cool if there were a way to set the value of a particular index.

@symisc
Copy link
Owner

symisc commented May 26, 2015

The HSET, HGET and related commands should perform the same job if you pass numbers instead of string as keys

@coleifer
Copy link

@symisc -- you mean just use a hash instead of the list type?

@symisc
Copy link
Owner

symisc commented May 27, 2015

I'm talking about setting a value of a particular index which may appy to an associative array or hash but I agree that the list commands should be available.

@coleifer
Copy link

@symisc -- I apologize but I don't think I follow. If I have a list of values (created by appending multiple values with LPUSH), I can use LINDEX to get the value stored at a given index. However I am not able to use HGET or HSET to access or modify the values in the list.

@symisc
Copy link
Owner

symisc commented May 27, 2015

@coleifer Ah ok, you are right, it cannot be done using HSET and stuff but it should be easy to implement since vedis uses internally a hybrid datastructure named hashmap which act as a hashtable and a linked list at the same time and since lists entries have automatically assigned indexes, acces to the item should be O(1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants