1Data::ObjectDriver::DriUvseerr::CCoanDctahrteia:b::u:MtOeebmdjceaPccethrDelrdi(Dv3oepcrmu:)m:eDnrtiavteiro:n:Cache::Memcached(3pm)
2
3
4
6 Data::ObjectDriver::Driver::Cache::Memcached - object driver for
7 caching objects with memcached
8
10 package MyObject;
11 use base qw( Data::ObjectDriver::BaseObject );
12
13 __PACKAGE__->install_properties({
14 ...
15 driver => Data::ObjectDriver::Driver::Cache::Memcached->new(
16 cache => Cache::Memcached->new({ servers => \@MEMCACHED_SERVERS }),
17 fallback => Data::ObjectDriver::Driver::DBI->new( @$DBI_INFO ),
18 ),
19 ...
20 });
21
22 1;
23
25 Data::ObjectDriver::Driver::Cache::Memcached provides automatic caching
26 of retrieved objects in your memcached servers, when used in
27 conjunction with your actual object driver.
28
30 • Data::ObjectDriver::Driver::Cache::Memcached->new( %params )
31
32 Required members of %params are:
33
34 • "cache"
35
36 The "Cache::Memcached" instance representing your pool of
37 memcached servers. See Cache::Memcached.
38
39 • "fallback"
40
41 The "Data::ObjectDriver" object driver from which to request
42 objects that are not found in your memcached servers.
43
45 The memcached driver provides integration with the "Data::ObjectDriver"
46 debug and profiling systems. As these systems are designed around SQL
47 queries, synthetic queries are logged to represent memcached
48 operations. The operations generated by this driver are:
49
50 • "MEMCACHED_ADD ?"
51
52 Put an item in the cache that was not there. The arguments are the
53 cache key for the object and the flattened representation of the
54 object to cache.
55
56 • "MEMCACHED_SET ?"
57
58 Put an item in the cache with new member data. The arguments are
59 the cache key for the object and the flattened representation of
60 the object to cache.
61
62 • "MEMCACHED_DELETE ?"
63
64 Remove an object from the cache. The argument is the cache key for
65 the object to invalidate.
66
67 • "MEMCACHED_GET ?"
68
69 Retrieve an object. The argument is the cache key for the requested
70 object.
71
72 • "MEMCACHED_GET_MULTI ?"
73
74 Retrieve a set of objects. The arguments are the cache keys for the
75 requested objects.
76
78 "Cache::Memcached", http://www.danga.com/memcached/
79
81 Data::ObjectDriver is free software; you may redistribute it and/or
82 modify it under the same terms as Perl itself.
83
85 Except where otherwise noted, Data::ObjectDriver is Copyright 2005-2006
86 Six Apart, cpan@sixapart.com. All rights reserved.
87
88
89
90perl v5.34.0 Data:2:0O2b2j-e0c1t-D2r1iver::Driver::Cache::Memcached(3pm)