root/branches/release-36/lib/MT/Cache/Null.pm @ 2027

Revision 2027, 1.2 kB (checked in by fumiakiy, 20 months ago)

Setting "SearchCacheTTL 0" now disables search results caching. BugId:79308

  • Property svn:keywords set to Id Date Author Revision
Line 
1# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
2# This program is distributed under the terms of the
3# GNU General Public License, version 2.
4#
5# $Id$
6
7package MT::Cache::Null;
8
9use strict;
10
11sub new {
12    my $class = shift;
13    my (%param) = @_;
14    my $self = bless \%param, $class;
15    return $self;
16}
17
18sub get {
19    my MT::Cache::Null $self = shift;
20    my ($key) = @_;
21    return;
22}
23
24sub get_multi {
25    my MT::Cache::Null $self = shift;
26    my @keys = @_;
27    return;
28}
29
30sub delete {
31    my MT::Cache::Null $self = shift;
32    my ($key, $time) = @_;
33    return;
34}
35*remove = \&delete;
36
37sub add {
38    return;
39}
40
41sub replace {
42    return;
43}
44
45sub set {
46    return;
47}
48
49sub _set {
50    my $cmdname = shift;
51    my MT::Cache::Null $self = shift;
52    my ($key, $val, $exptime) = @_;
53    return;
54}
55
56sub flush_all {
57    my MT::Cache::Null $self = shift;
58    return;
59}
60
61sub DESTROY {}
62
631;
64__END__
65
66=head1 NAME
67
68MT::Cache::Null - Null object compatible with the MT::Cache interface.
69
70=head1 DESCRIPTION
71
72I<MT::Cache::Null> provides interface to MT::Cache, but does absolutely
73nothing.
74
75=head1 USAGE
76
77See POD of I<MT::Cache::Session> for details.
78
79=head1 AUTHOR & COPYRIGHT
80
81Please see L<MT/AUTHOR & COPYRIGHT>.
82
83=cut
84
Note: See TracBrowser for help on using the browser.