mirror of
https://github.com/kennethreitz-archive/redi.git
synced 2026-06-05 07:26:14 +00:00
31 lines
350 B
Python
31 lines
350 B
Python
import redi
|
|
|
|
lst = redi.list(('haystack', 'metalist'))
|
|
|
|
# lst.append({'x': 'y'})
|
|
|
|
# for l in lst:
|
|
# print l
|
|
|
|
# lst.delete()
|
|
|
|
# lst.append(0)
|
|
# lst.append(124)
|
|
# lst.append(346)
|
|
# lst.append(46)
|
|
|
|
# print type(lst[1])
|
|
lst[2] = 23.3
|
|
|
|
# print type(lst[2])
|
|
# print (lst[2])
|
|
|
|
# print lst[2].keys()
|
|
|
|
# lst[2]['face'] = ['book']
|
|
|
|
print list(lst._raw)
|
|
|
|
|
|
|