1DBM::Deep::Storage(3) User Contributed Perl DocumentationDBM::Deep::Storage(3)
2
3
4
6 DBM::Deep::Storage - abstract base class for storage
7
8 flush()
9 This flushes the filehandle. This takes no parameters and returns
10 nothing.
11
12 is_writable()
13 This takes no parameters. It returns a boolean saying if this
14 filehandle is writable.
15
16 Taken from <http://www.perlmonks.org/?node_id=691054/>.
17
19 This is where the actual locking of the storage medium is performed.
20 Nested locking is supported.
21
22 NOTE: It is unclear what will happen if a read lock is taken, then a
23 write lock is taken as a nested lock, then the write lock is released.
24
25 Currently, the only locking method supported is flock(1). This is a
26 whole-file lock. In the future, more granular locking may be supported.
27 The API for that is unclear right now.
28
29 The following methods manage the locking status. In all cases, they
30 take a DBM::Deep object and returns nothing.
31
32 • lock_exclusive( $obj )
33
34 Take a lock usable for writing.
35
36 • lock_shared( $obj )
37
38 Take a lock usable for reading.
39
40 • unlock( $obj )
41
42 Releases the last lock taken. If this is the outermost lock, then
43 the object is actually unlocked.
44
45
46
47perl v5.34.0 2022-01-21 DBM::Deep::Storage(3)