PET::Session::RamdiskHash |
This is a very lightweight session handler optimized for speed. In therory, it stores session data in RAMDISK -- however, it needs a PATH so optionally that could mean a regular disk, too.
Sessions are stored in a key:value\n form in a text file. According to the first 2 md5 chars, derectories are created at “init” time.
This session implementation can only store one level of key/value pairs! Make sure that keys are ^\w+$ !
Summary
| PET::Session::RamdiskHash | This is a very lightweight session handler optimized for speed. |
| Functions | |
| init | Creates the 16*16 subdirectories for later use. |
| load | Load session from disk and returns it. |
| access | Session is accessed. |
| store | Store $self->{SESSION} by $self->{SESID} to disk. |
| _getPath | According to sesid, returns a path to the file we store our session data. |
| thaw($bin) | Returns the hashref (thawed) data. |
| freeze($data) | Returns freezed “binary” data. |