File: 0003-interaction

package info (click to toggle)
python-redis 6.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,432 kB
  • sloc: python: 60,318; sh: 179; makefile: 128
file content (11 lines) | stat: -rwxr-xr-x 152 bytes parent folder | download | duplicates (5)
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'