1Apache::Session::Lock::USsyebrasCeo(n3t)ributed Perl DocAupmaecnhtea:t:iSoenssion::Lock::Sybase(3)
2
3
4

NAME

6       Apache::Session::Lock::Sybase - Provides mutual exclusion using Sybase
7

SYNOPSIS

9        use Apache::Session::Lock::Sybase;
10
11        my $locker = Apache::Session::Lock::Sybase->new;
12
13        $locker->acquire_read_lock($ref);
14        $locker->acquire_write_lock($ref);
15        $locker->release_read_lock($ref);
16        $locker->release_write_lock($ref);
17        $locker->release_all_locks($ref);
18

DESCRIPTION

20       Apache::Session::Lock::Sybase fulfills the locking interface of
21       Apache::Session.  Mutual exclusion is achieved through the use of
22       Sybase's sp_getapplock and sp_releaseapplock functions. Sybase does not
23       support the notion of read and write locks, so this module only
24       supports exclusive locks.  When you request a shared read lock, it is
25       instead promoted to an exclusive write lock.
26

CONFIGURATION

28       The module must know how to connect to your MySQL database to acquire
29       locks.  You must provide a datasource name, a user name, and a
30       password.  These options are passed in the usual Apache::Session style,
31       and are very similar to the options for Apache::Session::Store::Sybase.
32       Example:
33
34        tie %hash, 'Apache::Session::Sybase', $id, {
35            LockDataSource => 'dbi:sybase:database',
36            LockUserName   => 'database_user',
37            LockPassword   => 'K00l'
38        };
39
40       Instead, you may pass in an already opened DBI handle to your database.
41
42        tie %hash, 'Apache::Session::Sybase', $id, {
43            LockHandle => $dbh
44        };
45

AUTHOR

47       This module was written by Oliver Maul <oli@42.nu>.
48

SEE ALSO

50       Apache::Session
51
52
53
54perl v5.32.0                      2020-09-19  Apache::Session::Lock::Sybase(3)
Impressum