Answer the question
In order to leave comments, you need to log in
Where does the Python redis package store data?
I installed a redis server and am trying to use it through the python package redis==3.3.11
(redis-py) [email protected] ~/.MINT18/code/python/redis-py $ python
Python 3.8.0 (default, Oct 14 2019, 23:13:30)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> r = redis.Redis()
>>> r.mset({'Croatia': 'Zagreb', 'Bahams': 'Nassau'})
True
>>> r.get('Bahams')
b'Nassau'
>>> exit
(redis-py) [email protected] ~/.MINT18/code/python/redis-py $ python
Python 3.8.0 (default, Oct 14 2019, 23:13:30)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> r = redis.Redis()
>>> r.get("Bahamas")
>>>
# Из redis/client.py
class Redis(object):
def __init__(self, host='localhost', port=6379,
db=0, password=None, socket_timeout=None,
# ...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question