File: redis_mockup.py

package info (click to toggle)
python-django-constance 4.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 796 kB
  • sloc: python: 2,080; makefile: 25; javascript: 23; sh: 6
file content (6 lines) | stat: -rw-r--r-- 155 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
class Connection(dict):
    def set(self, key, value):
        self[key] = value

    def mget(self, keys):
        return [self.get(key) for key in keys]