Skip to main content

snippets_py

Integration

New integration from credential
redis = yepcode.integration.redis('credential-slug')
New integration from plain authentication data
import redis

redis = redis.Redis(
host='the-host',
port=the-port,
username='the-username',
password='the-password',
db=theDatabaseNumber,
decode_response=True
)

redis.ping()

Set a New Entry

Set a new entry
redis.set('the-key', 'the-value')

Get Entry

Get entry
redis.get('the-key')

Delete Entry

Delete entry
redis.delete('the-key')