Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cache::ref::clock(3pm) [debian man page]

Cache::Ref::CLOCK(3pm)					User Contributed Perl Documentation				    Cache::Ref::CLOCK(3pm)

NAME
Cache::Ref::CLOCK - CLOCK cache replacement algorithm SYNOPSIS
my $c = Cache::Ref::CLOCK->new( size => $n, k => $k, ); DESCRIPTION
This algorithm is provides a second chance FIFO cache expiry policy using a circular buffer. It is a very well accepted page replacement algorithm, but largely for reasons which are irrelevant in this context (cache hits don't need to be serialized in a multiprocessing context as they only require an idempotent operation (setting a bit to 1)). ATTRIBUTES
size The size of the live entries. k This is the initial value given to all hit entries. As the hand moves through the circular buffer it decrements the counters. The default is 1, providing semantics similar to a second chance FIFO cache. Larger values of "k" model LRU more accurately. This is pretty silly though, as Cache::Ref::LRU is probably way more efficient for any "k" bigger than 1. AUTHOR
Yuval Kogman COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Yuval Kogman. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.12.4 2010-09-23 Cache::Ref::CLOCK(3pm)

Check Out this Related Man Page

Cache::Null(3pm)					User Contributed Perl Documentation					  Cache::Null(3pm)

NAME
Cache::Null - Null implementation of the Cache interface SYNOPSIS
use Cache::Null; my $cache = Cache::Null->new(); See Cache for the usage synopsis. DESCRIPTION
The Cache::Null class implements the Cache interface, but does not actually persist data. This is useful when developing and debugging a system and you wish to easily turn off caching. As a result, all calls return results indicating that there is no data stored. CONSTRUCTOR
my $cache = Cache::Null->new( %options ) The constructor takes cache properties as named arguments, for example: my $cache = Cache::Null->new( default_expires => '600 sec' ); See 'PROPERTIES' below and in the Cache documentation for a list of all available properties that can be set. However it should be noted that all the existing properties, such as default_expires, have no effect in a Null cache. METHODS
See 'Cache' for the API documentation. SEE ALSO
Cache AUTHOR
Chris Leishman <chris@leishman.org> Based on work by DeWitt Clinton <dewitt@unto.net> COPYRIGHT
Copyright (C) 2003-2006 Chris Leishman. All Rights Reserved. This module is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. This program is free software; you can redistribute or modify it under the same terms as Perl itself. $Id: Null.pm,v 1.4 2006/01/31 15:23:58 caleishm Exp $ perl v5.12.4 2011-08-05 Cache::Null(3pm)
Man Page

6 More Discussions You Might Find Interesting

1. Programming

Code Snippets

Can Anyone give me an implimentation of virtual memory (simulation using paging only) .it should have the following algos for page replacement 1. LRU 2.FIFO 3.Clock references to web sites would be gr8 too it should have the code/algo no executables(in C only) (0 Replies)
Discussion started by: wojtyla
0 Replies

2. Solaris

Unix Cache / Buffer

Does anyone know how the unix buffer / cache is set in a Solaris based system ? ( I presume it is a kernel based setting ) I notice from SAR -d that my read cache is consistently at 100% but my write cache frequently falls below 65%. What does this mean. Should I be tuning the write cache and... (1 Reply)
Discussion started by: jimthompson
1 Replies

3. Programming

c++ code to check whether a list is circular or not

hi all, i need c++ code to check whether a list is circular or not... please help (8 Replies)
Discussion started by: vidyaj
8 Replies

4. UNIX for Advanced & Expert Users

AutoSys

From where i can get complete Ref. pdf of AutoSys r11.3 any one got idea ? I cant find good document for that (2 Replies)
Discussion started by: ujjwal2120
2 Replies

5. Programming

Segfault When Parsing Delimiters In C

Another project, another bump in the road and another chance to learn. I've been trying to open gzipped files and parse data from them and hit a snag. I have data in gzips with a place followed by an ip or ip range sort of like this: Some place:x.x.x.x-x.x.x.x I was able to modify some code... (6 Replies)
Discussion started by: Azrael
6 Replies

6. Shell Programming and Scripting

Replace all string matches in file with unique random number

Hello Take this file... Test01 Ref test Version 01 Test02 Ref test Version 02 Test66 Ref test Version 66 Test99 Ref test Version 99 I want to substitute every occurrence of Test{2} with a unique random number, so for example, if I was using sed, substitution would be something... (1 Reply)
Discussion started by: funkman
1 Replies