Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-cicd
csst-dag
Commits
b5b6e3fe
Commit
b5b6e3fe
authored
Jan 13, 2025
by
BO ZHANG
🏀
Browse files
redis name->qname
parent
2d9d300e
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/redis.py
View file @
b5b6e3fe
...
...
@@ -26,10 +26,10 @@ class Redis(redis.Redis):
print
(
f
" -
{
k
}
:
{
v
}
"
)
def
push
(
self
,
msg
):
self
.
lpush
(
self
.
name
,
msg
)
self
.
lpush
(
self
.
q
name
,
msg
)
def
pop
(
self
):
return
self
.
rpop
(
self
.
name
)
return
self
.
rpop
(
self
.
q
name
)
def
get_all
(
self
):
return
self
.
lrange
(
self
.
qname
,
0
,
-
1
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment