File: 0003-interaction

package info (click to toggle)
python-redis 3.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 796 kB
  • sloc: python: 8,336; sh: 172; 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'