- create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf- edit /etc/redis-xxx.conf, illustrated as below
...$ cp /etc/redis.conf /etc/redis-xxx.conf...| class TempResource(Resource): | |
| class Meta: | |
| resource_name = 'temp_resource' | |
| object_class = temp_resource.delay | |
| authorization = Authorization() | |
| allowed_methods = ['post', 'get'] | |
| always_return_data = True | |
| def get_resource_uri(self, bundle_or_obj): | |
| """ |