File: 0003-interaction

package info (click to toggle)
python-redis 6.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,296 kB
  • sloc: python: 57,443; sh: 179; makefile: 128
file content (11 lines) | stat: -rwxr-xr-x 152 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3
#
# Interact with server

import redis

client = redis.Redis()

client.set('key', 'value')

assert client.get('key') == b'value'