Changes of Revision 3
[-] | Changed | perl-Cache-Cache.spec |
x 1
2 %define modname Cache-Cache 3 Name: perl-%{modname} 4 -Version: 1.05 5 -Release: 1 6 +Version: 1.06 7 +Release: 3 8 Summary: Cache Interface 9 Requires: perl = %{perl_version} 10 BuildRequires: perl perl-Digest-SHA1 perl-Error perl-IPC-ShareLite 11
12 /var/adm/perl-modules/%{name} 13 14 %changelog 15 +* Fri Oct 14 2011 Carsten Schoene <cs@linux-administrator.com> - 1.0.5-3 16 +- update to release 1.06 17 18 * Thu Nov 01 2007 - James Oakley <jfunk@funktronics.ca> - 1.05-1 19 - Initial release 20 |
||
Added | Cache-Cache-1.06.tar.bz2/._META.yml ^ | |
[+] | Changed | Cache-Cache-1.06.tar.bz2/CHANGES ^ |
@@ -1,8 +1,10 @@ Revision history for Cache -1.05 2006-05-26-08-22 - - release version 1.05 - - added test for auto_purge_on_get +1.06 in progress + - updated the project homepage and added notes about the CHI project + - fixed extra "use vars" in CacheUtils + +1.05 2006-05-26 - fixed infinite loop with auto_purge_on_get - fixed directory paths on Windows partitions - NullCache uses BaseCache | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/CREDITS ^ |
@@ -1,4 +1,6 @@ -- dwright at cpan.org for the fix on the infinite look for +- Stefano Rodighiero for catching the extra "use vars" in CacheUtils + +- dwright at cpan.org for the fix on the infinite loop for auto_purge_on_get - thanks to <info at whawes.co.uk> for catching the windows directory | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/README ^ |
@@ -30,6 +30,20 @@ IPC::Cache projects. +CACHE::CACHE VERSUS CHI + + Cache::Cache is in wide use and very stable, but has not changed in years + and is no longer actively developed. + + L<CHI|CHI> is the successor to Cache::Cache. It adheres to the basic + Cache::Cache API but adds new features and drivers (e.g. FastMmap and + Memcached), improves performance, and addresses limitations in the + Cache::Cache implementation. The authors recommend the use of CHI going forward. + + Questions about Cache::Cache and CHI may be directed to the perl-cache + mailing list at http://groups.google.com/group/perl-cache-discuss. + + REQUIREMENTS Digest::SHA1 @@ -126,12 +140,16 @@ SEE ALSO - The project homepage at http://perl-cache.sourceforge.net + The project homepage at http://perl-cache.googlecode.com/. + + The discussion list at http://groups.google.com/group/perl-cache-discuss. + + The CHI project. AUTHOR Original author: DeWitt Clinton <dewitt@unto.net> - Copyright (C) 2001-2006 DeWitt Clinton + Copyright (C) 2001-2009 DeWitt Clinton | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/BaseCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: BaseCache.pm,v 1.26 2006/05/18 04:20:17 dclinton Exp $ +# $Id: BaseCache.pm,v 1.25 2003/04/15 14:46:14 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS @@ -315,7 +315,7 @@ { my ( $self ) = @_; - return $self->_get_backend( )->get_namespaces( ); + return grep {!/$AUTO_PURGE_NAMESPACE/} $self->_get_backend( )->get_namespaces( ); } | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/BaseCacheTester.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: BaseCacheTester.pm,v 1.8 2003/04/15 14:46:15 dclinton Exp $ +# $Id: BaseCacheTester.pm,v 1.7 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/Cache.pm ^ |
@@ -20,7 +20,7 @@ @EXPORT_OK = qw( $VERSION $EXPIRES_NOW $EXPIRES_NEVER ); -$VERSION = "1.05"; +$VERSION = "1.06"; $EXPIRES_NOW = 'now'; $EXPIRES_NEVER = 'never'; @@ -61,7 +61,7 @@ sub set_auto_purge_interval; -sub get_auto_purge_on_get; +sub get_auto_purge_on_set; sub set_auto_purge_on_set; @@ -97,6 +97,19 @@ get, set, remove, size, purge, and clear instance methods and their corresponding static methods for persisting data across method calls. +=head1 CACHE::CACHE VERSUS CHI + +Cache::Cache is in wide use and very stable, but has not changed in years +and is no longer actively developed. + +L<CHI|CHI> is the successor to Cache::Cache. It adheres to the basic +Cache::Cache API but adds new features and drivers (e.g. FastMmap and +Memcached), improves performance, and addresses limitations in the +Cache::Cache implementation. The authors recommend the use of CHI going forward. + +Questions about Cache::Cache and CHI may be directed to the perl-cache +mailing list at http://groups.google.com/group/perl-cache-discuss. + =head1 USAGE First, choose the best type of cache implementation for your needs. @@ -255,9 +268,7 @@ =item I<auto_purge_on_get> If this option is true, then the auto purge interval routine will be -checked on every get. This is probably not the desired behavior, as -the purge could be a very expensive operation. - +checked on every get. =back @@ -303,6 +314,8 @@ =head1 SEE ALSO +CHI - the successor to Cache::Cache + Cache::Object, Cache::MemoryCache, Cache::FileCache, Cache::SharedMemoryCache, and Cache::SizeAwareFileCache | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/CacheMetaData.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: CacheMetaData.pm,v 1.13 2003/04/15 14:46:16 dclinton Exp $ +# $Id: CacheMetaData.pm,v 1.12 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/CacheSizer.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: CacheSizer.pm,v 1.5 2003/04/15 14:46:16 dclinton Exp $ +# $Id: CacheSizer.pm,v 1.4 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/CacheTester.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: CacheTester.pm,v 1.21 2003/04/15 14:46:17 dclinton Exp $ +# $Id: CacheTester.pm,v 1.20 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS @@ -570,10 +570,12 @@ { my ( $self, $cache ) = @_; - $cache->set( 'foo', 'bar' ); + $cache->set( 'a', '1' ); + $cache->set_namespace( 'namespace' ); + $cache->set( 'b', '2' ); if ( Arrays_Are_Equal( [ sort( $cache->get_namespaces( ) ) ], - [ sort( 'Default', '__AUTO_PURGE__' ) ] ) ) + [ sort( 'Default', 'namespace' ) ] ) ) { $self->ok( ); } @@ -584,53 +586,6 @@ $cache->Clear( ); } - - -# test the auto_purge on get functionality - -sub _test_eighteen -{ - my ( $self, $cache ) = @_; - - $cache->Clear( ); - - my $expires_in = $EXPIRES_DELAY; - - $cache->set_auto_purge_interval( $expires_in ); - - $cache->set_auto_purge_on_get( 1 ); - - my $key = 'Test Key'; - - my $key_two = 'Test Key Two'; - - my $value = 'Test Value'; - - $cache->set( $key, $value, $expires_in ); - - $cache->set( $key_two, $value, $expires_in ); - - my $fetched_value = $cache->get( $key ); - - ( $fetched_value eq $value ) ? - $self->ok( ) : $self->not_ok( '$fetched_value eq $value' ); - - my $fetched_value_two = $cache->get( $key_two ); - - ( $fetched_value_two eq $value ) ? - $self->ok( ) : $self->not_ok( '$fetched_value eq $value' ); - - sleep( $EXPIRES_DELAY + 1 ); - - $cache->get( 'Text Key' ); # trigger purge for key_two - - my $fetched_expired_object = $cache->get_object( $key_two ); - - ( not defined $fetched_expired_object ) ? - $self->ok( ) : $self->not_ok( 'not defined $fetched_expired_object' ); - - $cache->Clear( ); -} | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/CacheUtils.pm ^ |
@@ -27,9 +27,6 @@ Static_Params Thaw_Data ); -use vars ( @EXPORT_OK ); - - # throw an Exception if the Assertion fails sub Assert_Defined | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/FileBackend.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: FileBackend.pm,v 1.28 2005/07/13 22:29:33 dclinton Exp $ +# $Id: FileBackend.pm,v 1.27 2005/03/17 19:31:27 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/FileCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: FileCache.pm,v 1.32 2003/04/15 14:46:22 dclinton Exp $ +# $Id: FileCache.pm,v 1.31 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/MemoryBackend.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: MemoryBackend.pm,v 1.11 2003/04/15 14:46:23 dclinton Exp $ +# $Id: MemoryBackend.pm,v 1.10 2003/01/16 18:10:16 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/MemoryCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: MemoryCache.pm,v 1.28 2003/04/15 14:46:23 dclinton Exp $ +# $Id: MemoryCache.pm,v 1.27 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/NullCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: NullCache.pm,v 1.8 2005/11/04 15:34:42 dclinton Exp $ +# $Id: NullCache.pm,v 1.7 2002/07/18 06:15:18 dclinton Exp $ # Copyright (C) 2001 Jay Sachs, 2002 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/Object.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: Object.pm,v 1.9 2003/04/15 14:46:23 dclinton Exp $ +# $Id: Object.pm,v 1.8 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/SharedMemoryBackend.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: SharedMemoryBackend.pm,v 1.8 2004/04/24 15:20:59 dclinton Exp $ +# $Id: SharedMemoryBackend.pm,v 1.7 2003/04/15 14:46:23 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/SharedMemoryCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: SharedMemoryCache.pm,v 1.25 2004/04/24 15:52:23 dclinton Exp $ +# $Id: SharedMemoryCache.pm,v 1.24 2004/04/24 15:46:47 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/SizeAwareCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: SizeAwareCache.pm,v 1.11 2003/04/15 14:46:23 dclinton Exp $ +# $Id: SizeAwareCache.pm,v 1.10 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/SizeAwareCacheTester.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: SizeAwareCacheTester.pm,v 1.12 2003/04/15 14:46:23 dclinton Exp $ +# $Id: SizeAwareCacheTester.pm,v 1.11 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/SizeAwareFileCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: SizeAwareFileCache.pm,v 1.29 2003/04/15 14:46:23 dclinton Exp $ +# $Id: SizeAwareFileCache.pm,v 1.28 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/SizeAwareMemoryCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: SizeAwareMemoryCache.pm,v 1.19 2003/04/15 14:46:24 dclinton Exp $ +# $Id: SizeAwareMemoryCache.pm,v 1.18 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS | ||
[+] | Changed | Cache-Cache-1.06.tar.bz2/lib/Cache/SizeAwareSharedMemoryCache.pm ^ |
@@ -1,5 +1,5 @@ ###################################################################### -# $Id: SizeAwareSharedMemoryCache.pm,v 1.23 2003/04/15 14:46:24 dclinton Exp $ +# $Id: SizeAwareSharedMemoryCache.pm,v 1.22 2002/04/07 17:04:46 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS |