What's Wrong with this code Error : DefaultClient.set() missing 1 required positional argument: 'value' CODE : if 'service' in cache: # get results from cache services = cache.get('service') print("DATA COMING FROM CACHE")
else: print("DATA COMING FROM DB") services = Services.objects.all() cache.set('service')
@@amitpritammohapatra969 yes im sure you are using windows, configure the dummy redis,filesytem. Once in linux you will not get any error cause redis needs to be installed
What's Wrong with this code
Error : DefaultClient.set() missing 1 required positional argument: 'value'
CODE :
if 'service' in cache:
# get results from cache
services = cache.get('service')
print("DATA COMING FROM CACHE")
else:
print("DATA COMING FROM DB")
services = Services.objects.all()
cache.set('service')
Maybe you forget to add value under the "service" key.
cache.set('service',value)
same error
jango.core.cache.backends.base.InvalidCacheBackendError: I'm facing this problem , please help.How can i resolve it.
Error 10061 connecting to 127.0.0.1:6379. No connection could be made because the target machine actively refused it. showing this error
anyone with solutions??
@@amitpritammohapatra969 yes im sure you are using windows, configure the dummy redis,filesytem. Once in linux you will not get any error cause redis needs to be installed
same error
Why do you give an english title, introduce your self in english then switch to a whole deferent language? I'm seriously curious.
No one cares