Cache:...GCLOCK(3pm)
π NAME π
Cache::Ref::GCLOCK β bestie, it's the GCLOCK cache replacement algorithm, and yes she's that girl π
β¨ SYNOPSIS β¨
my $c = Cache::Ref::GCLOCK->new(
size => $n,
);
π¦ DESCRIPTION π¦
okay so real talk: this algorithm is literally cousins with Cache::Ref::CLOCK πΈ but here's the plot twist β instead of starting every single cache hit from "k", a counter gets bumped up on every hit. every. single. one. π₯
and what does that give you? it's giving LFU expiry policy energy β like, least-frequently-used behavior, periodt π β except without having to drag the entire keyspace into it. so it's the vibe of LFU but not the whole dramatic production. iykyk π
π ATTRIBUTES π
sizeβ the size of the live entries. that's the whole thing. the size. of the live entries. she said what she said π
π 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. slay, open source icon behavior, we love to see it π
okay that's the whole page bestie, no notes π this was written for perl v5.32.0 and dated 2021-01-07, brought to you by the User Contributed Perl Documentation crew π bye ily, go cache responsibly β¨π¦π
π¦ where this page comes from
- debian bookworm: libcache-ref-perl 0.04-1.1
- debian trixie: libcache-ref-perl 0.04-1.1
- ubuntu jammy: libcache-ref-perl 0.04-1.1
- ubuntu noble: libcache-ref-perl 0.04-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms