Cache::BaseCacheTester(3pm) User Contributed Perl Documentation Cache::BaseCacheTester(3pm)NAME
Cache::BaseCacheTester -- abstract cache tester base class
DESCRIPTION
BaseCacheTester provides functionality common to all instances of a class that will test cache implementations.
SYNOPSIS
BaseCacheTester provides functionality common to all instances of a class that will test cache implementations.
package Cache::MyCacheTester;
use vars qw( @ISA );
use Cache::BaseCacheTester;
@ISA = qw( Cache::BaseCacheTester );
METHODS
new( $base_test_count )
Construct a new BaseCacheTester and initialize the test count to $base_test_count.
ok( )
Print a message to stdout in the form "ok $test_count" and incremements the test count.
not_ok( $message )
Print a message to stdout in the form "not ok $test_count # $message " and incremements the test count.
skip( $message )
Print a message to stdout in the form "ok $test_count # skipped $message " and incremements the test count.
SEE ALSO
Cache::CacheTester, Cache::SizeAwareCacheTester
AUTHOR
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: dclinton $
Copyright (C) 2001-2003 DeWitt Clinton
perl v5.12.4 2009-03-01 Cache::BaseCacheTester(3pm)
Check Out this Related Man Page
Cache::Object(3pm) User Contributed Perl Documentation Cache::Object(3pm)NAME
Cache::Object -- the data stored in a Cache.
DESCRIPTION
Object is used by classes implementing the Cache interface as an object oriented wrapper around the data. End users will not normally use
Object directly, but it can be retrieved via the get_object method on the Cache::Cache interface.
SYNOPSIS
use Cache::Object;
my $object = new Cache::Object( );
$object->set_key( $key );
$object->set_data( $data );
$object->set_expires_at( $expires_at );
$object->set_created_at( $created_at );
METHODS
new( )
Construct a new Cache::Object.
PROPERTIES
(get|set)_accessed_at
The time at which the object was last accessed. Various cache implementations will use the accessed_at property to store information
for LRU algorithms. There is no guarentee that all caches will update this field, however.
(get|set)_created_at
The time at which the object was created.
(get|set)_data
A scalar containing or a reference pointing to the data to be stored.
(get|set)_expires_at
The time at which the object should expire from the cache.
(get|set)_key
The key under which the object was stored.
(get|set)_size
The size of the frozen version of this object
SEE ALSO
Cache::Cache
AUTHOR
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: dclinton $
Copyright (C) 2001-2003 DeWitt Clinton
perl v5.12.4 2009-03-01 Cache::Object(3pm)
Team,
Could some one help me in Printing from matching word to end using awk
For ex:
Input:
I am tester for now
I am tester yesterday
I am tester tomorrow
O/p
tester for now
tester yesterday
tester tomorrow
i.e Starting from tester till end of sentence (5 Replies)
I have a script that goes through a 24 hr logfile, And i want to count the instances of a Test01 to 83 and output the sum of all the instances over 24hrs
#/bin/ksh
cat $parse_data | awk '/'$time$i'/ {for(x=0; x<=16; x++) {getline; print}print "--" }' > _hr.txt
for... (2 Replies)
Hi All,
I'm assigning a numeric value to variable count=2, well its being assigned by code above the if condition.
I want to test for 2 conditions , when $count = 0 or $count <=2 and do something when the condition matches. here is my code, but i run into the infamous :
if ]
then
... (2 Replies)