libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
sessions_redis.c File Reference
#include <stdlib.h>
#include <string.h>
#include <hiredis/hiredis.h>
#include "sessions.h"
#include "sessions_redis.h"
#include "types_internal.h"
#include "dict.h"
#include "random.h"
#include "block.h"
#include "log.h"
#include "low.h"

Data Structures

struct  onion_session_redis_t

Typedefs

typedef struct
onion_session_redis_t 
onion_session_redis

Functions

void onion_sessions_redis_save (onion_sessions *sessions, const char *session_id, onion_dict *data)
onion_sessionsonion_sessions_redis_new (const char *server_ip, int port)
 Creates a redis backend for sessions.

Typedef Documentation

Function Documentation

void onion_sessions_redis_save ( onion_sessions sessions,
const char *  session_id,
onion_dict data 
)