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

New data structure —— List #137

Closed
qishenonly opened this issue Jul 3, 2023 · 3 comments
Closed

New data structure —— List #137

qishenonly opened this issue Jul 3, 2023 · 3 comments
Assignees
Labels
difficult:⭐⭐⭐⭐⭐ Up to five stars enhancement New feature or request

Comments

@qishenonly
Copy link
Member

qishenonly commented Jul 3, 2023

We need a new data structure, List, to extend the database's key-value storage structure.
We need to build some instructions into List to make it more complete.
If you are interested in extending the List data structure, you can comment below on the issue id you would like to try and we will assign it to you.

ID Method Command Description Progress People
1 LPush LPush key value1 Insert one or more values at the left of a list finished   @SandTripper
2 LPushs LPushs key value1 value2 ... Insert multiple values at the left of a list finished   @SandTripper
3 RPush RPush key value1 Insert one or more values at the right of a list finished   @SandTripper
4 RPushs RPushs key value1 value2 ... Insert multiple values at the right of a list finished   @SandTripper
5 LPop LPop key Remove and return the first value from the left of a list finished   @SandTripper
6 RPop RPop key Remove and return the last value from the right of a list finished   @SandTripper
7 LRange LRange key start stop Get a range of values from a list  finished  @SandTripper
8 LLen LLen key Get the length of a list finished   @SandTripper
9 LRem LRem key count value Remove matching values from a list finished   @SandTripper
10 LSet LSet key index value Set the value at a specific index in a list finished   @SandTripper
11 LTrim LTrim key start stop Trim a list to the specified range of elements finished    @SandTripper
12 LIndex LIndex key index Get the element at a specific index in a list  finished  @SandTripper
13 RPOPLPUSH RPOPLPUSH source destination Remove an element from the end of one list and push it to another list finished @SandTripper
@qishenonly qishenonly added difficult:⭐⭐⭐⭐⭐ Up to five stars enhancement New feature or request labels Jul 3, 2023
@SandTripper
Copy link
Contributor

I want to receive tasks from ID1 to 13

@qishenonly
Copy link
Member Author

I want to receive tasks from ID1 to 13我要接收ID1到13的任务

OK,try to do it. It might be a little difficult

1 similar comment
@qishenonly
Copy link
Member Author

I want to receive tasks from ID1 to 13我要接收ID1到13的任务

OK,try to do it. It might be a little difficult

SandTripper added a commit to SandTripper/FlyDB that referenced this issue Jul 5, 2023
SandTripper added a commit to SandTripper/FlyDB that referenced this issue Jul 5, 2023
fix list_test

Implement all functions of ListStructure(ByteStorage#137)
SandTripper added a commit to SandTripper/FlyDB that referenced this issue Jul 5, 2023
qishenonly added a commit that referenced this issue Jul 5, 2023
Implement all functions of ListStructure(#137 ID 1~13)
saeid-a pushed a commit to saeid-a/FlyDB that referenced this issue Jul 12, 2023
saeid-a pushed a commit to saeid-a/FlyDB that referenced this issue Jul 12, 2023
Implement all functions of ListStructure(ByteStorage#137 ID 1~13)
CrazyJius pushed a commit that referenced this issue Jul 12, 2023
Implement all functions of ListStructure(#137 ID 1~13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficult:⭐⭐⭐⭐⭐ Up to five stars enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants