Apache...sandra(3pm)

🌸 NAME 🌸

okay so this is Apache...sandra(3pm) β€” a User Contributed Perl Documentation page β€” and it's literally about Apache::Session::Browseable::Cassandra, the Apache::Session backend that stores sessions in a Cassadra database. iconic, no cap πŸ’….


✨ SYNOPSIS ✨

bestie, here's the code in all its glory β€” it's giving "tie a hash, set some fields, untie." the Index key in the args is the choose-your-browseable-fields moment, and the example uses '_whatToTrace _session_kind _utime iAddr':

use Apache::Session::Browseable::Cassandra;

my $args = {
     DataSource => 'dbi:Cassandra:host=localhost;keyspace=llng',
     UserName   => $db_user,
     Password   => $db_pass,

     # Choose your browseable fileds
     Index      => '_whatToTrace _session_kind _utime iAddr',
};

# Use it like Apache::Session
my %session;
tie %session, 'Apache::Session::Browseable::Cassandra', $id, $args;
$session{uid} = 'me';
$session{mail} = 'me@me.com';
$session{unindexedField} = 'zz';
untie %session;

πŸ’– DESCRIPTION πŸ’–

Apache::Session::Browseable::Cassandra is an implementation of Apache::Session for Cassandra database. periodt. that's the description, and it ate.

πŸŽ€ SCHEMA πŸŽ€

to use this module, you will need at least these columns in a table called 'sessions' β€” highkey the table is main character energy:

id text
a_session text

to create this schema, you can execute this command using cqlsh:

CREATE TABLE sessions (
   id text PRIMARY KEY,
   a_session text
);

πŸ¦‹ CONFIGURATION πŸ¦‹

vibe check: the module must know what datasource, username, and password to use when connecting to the database. these values can be set using the options hash (see Apache::Session documentation). the options are DataSource, UserName, and Password.

  • DataSource β€” the datasource it needs for the connection.
  • UserName β€” the database username.
  • Password β€” the database password.

Example:

tie %hash, 'Apache::Session::Cassandra', $id, {
    DataSource => 'dbi:Cassandra:host=localhost;keyspace=llng',
    UserName   => 'database_user',
    Password   => 'K00l'
};

there's also the handle route: Handle β€” instead, you may pass in an already-opened DBI handle to your database.

tie %hash, 'Apache::Session::Cassandra', $id, {
    Handle => $dbh
};

πŸ”₯ SEE ALSO πŸ”₯

  • Apache::Session
  • Apache::Session::DBI

iykyk β€” those are the related modules, bestie.

Copyright (C):

  • 2009-2025 by Xavier Guimard
  • 2013-2025 by ClΓ©ment Oudot
  • 2019-2025 by Maxime Besson
  • 2013-2025 by Worteks
  • 2023-2025 by Linagora

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.

slay β€” that's the license, fr fr.


okay that's the whole page, bestie 🫢 source/version: perl v5.40.1 β€” date: 2026-05-14 β€” from Apache...sandra(3pm) πŸ’…βœ¨

πŸ“¦ where this page comes from