-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b39c6b
commit df5cb6c
Showing
6 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"values": { | ||
"login_count": "0" | ||
} | ||
"age": "20", | ||
"name": "Test User" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{ | ||
"fields": | ||
[ | ||
"name", | ||
"email" | ||
], | ||
"get_all": true, | ||
"key": "user:profile:123" | ||
"fields": [ | ||
"age", | ||
"name" | ||
], | ||
"get_all": false, | ||
"key": "user:4567" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ | |
|
||
sys.path.append(os.path.abspath("../")) | ||
from komand_redis.connection import Connection | ||
from komand_redis.connection.schema import Input | ||
|
||
|
||
class Util: | ||
@staticmethod | ||
|
@@ -34,6 +32,10 @@ def __init__(self): | |
def delete(key_name: str): | ||
return 10 | ||
|
||
@staticmethod | ||
def hmget(key_name: str, fields: list): | ||
return [b'20', b'Test User'] | ||
|
||
@staticmethod | ||
def hgetall(key_name: str): | ||
return {b"age": b"20", b"email": b"[email protected]", b"name": b"Test User"} | ||
|