1Apache::Session::BrowseUasbelre:C:oCnatsrsiabnudtArepada(c3Phpeemr:)l:SDeoscsuimoenn:t:aBtrioownseable::Cassandra(3pm)
2
3
4

NAME

6       Apache::Session::Browseable::Cassandra - Apache::Session backend to
7       store sessions in a Cassadra database.
8

SYNOPSIS

10         use Apache::Session::Browseable::Cassandra;
11
12         my $args = {
13              DataSource => 'dbi:Cassandra:host=localhost;keyspace=llng',
14              UserName   => $db_user,
15              Password   => $db_pass,
16
17              # Choose your browseable fileds
18              Index      => '_whatToTrace _session_kind _utime iAddr',
19         };
20
21         # Use it like Apache::Session
22         my %session;
23         tie %session, 'Apache::Session::Browseable::Cassandra', $id, $args;
24         $session{uid} = 'me';
25         $session{mail} = 'me@me.com';
26         $session{unindexedField} = 'zz';
27         untie %session;
28

DESCRIPTION

30       Apache::Session::Browseable::Cassandra is an implementation of
31       Apache::Session for Cassandra database.
32

SCHEMA

34       To use this module, you will need at least these columns in a table
35       called 'sessions':
36
37         id text
38         a_session text
39
40       To create this schema, you can execute this command using cqlsh:
41
42         CREATE TABLE sessions (
43            id text PRIMARY KEY,
44            a_session text
45         );
46

CONFIGURATION

48       The module must know what datasource, username, and password to use
49       when connecting to the database.  These values can be set using the
50       options hash (see Apache::Session documentation).  The options are
51       DataSource, UserName, and Password.
52
53       Example:
54
55        tie %hash, 'Apache::Session::Cassandra', $id, {
56            DataSource => 'dbi:Cassandra:host=localhost;keyspace=llng',
57            UserName   => 'database_user',
58            Password   => 'K00l'
59        };
60
61       Instead, you may pass in an already-opened DBI handle to your database.
62
63        tie %hash, 'Apache::Session::Cassandra', $id, {
64            Handle => $dbh
65        };
66

AUTHOR

68       This module was written by Mike Langen <mike.langen@tamedia.ch>, based
69       on the original for Oracle.
70

SEE ALSO

72       Apache::Session, Apache::Session::DBI 1;
73
74
75
76perl v5.38.0                      20A2p3a-c0h7e-:2:0Session::Browseable::Cassandra(3pm)
Impressum