{
    "mode": "perldoc",
    "parameter": "Apache::Session::Lock::Sybase",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Apache%3A%3ASession%3A%3ALock%3A%3ASybase/json",
    "generated": "2026-06-09T18:33:29Z",
    "synopsis": "use Apache::Session::Lock::Sybase;\nmy $locker = Apache::Session::Lock::Sybase->new;\n$locker->acquirereadlock($ref);\n$locker->acquirewritelock($ref);\n$locker->releasereadlock($ref);\n$locker->releasewritelock($ref);\n$locker->releasealllocks($ref);",
    "sections": {
        "NAME": {
            "content": "Apache::Session::Lock::Sybase - Provides mutual exclusion using Sybase\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Apache::Session::Lock::Sybase;\n\nmy $locker = Apache::Session::Lock::Sybase->new;\n\n$locker->acquirereadlock($ref);\n$locker->acquirewritelock($ref);\n$locker->releasereadlock($ref);\n$locker->releasewritelock($ref);\n$locker->releasealllocks($ref);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Apache::Session::Lock::Sybase fulfills the locking interface of Apache::Session. Mutual\nexclusion is achieved through the use of Sybase's spgetapplock and spreleaseapplock functions.\nSybase does not support the notion of read and write locks, so this module only supports\nexclusive locks. When you request a shared read lock, it is instead promoted to an exclusive\nwrite lock.\n",
            "subsections": []
        },
        "CONFIGURATION": {
            "content": "The module must know how to connect to your MySQL database to acquire locks. You must provide a\ndatasource name, a user name, and a password. These options are passed in the usual\nApache::Session style, and are very similar to the options for Apache::Session::Store::Sybase.\nExample:\n\ntie %hash, 'Apache::Session::Sybase', $id, {\nLockDataSource => 'dbi:sybase:database',\nLockUserName   => 'databaseuser',\nLockPassword   => 'K00l'\n};\n\nInstead, you may pass in an already opened DBI handle to your database.\n\ntie %hash, 'Apache::Session::Sybase', $id, {\nLockHandle => $dbh\n};\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This module was written by Oliver Maul <oli@42.nu>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Apache::Session\n",
            "subsections": []
        }
    },
    "summary": "Apache::Session::Lock::Sybase - Provides mutual exclusion using Sybase",
    "flags": [],
    "examples": [],
    "see_also": []
}