---
name: "Cache::Ref::LRU"
section: "3pm"
platform: "linux"
package: "libcache-ref-perl"
version: "0.04-1.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Cache::Ref::LRU"
---

# Cache::Ref::LRU(3pm)

Least recently used expiry policy

## NAME

Cache::Ref::LRU - Least recently used expiry policy

## SYNOPSIS

```
    my $c = Cache::Ref::LRU->new(
        size => $n,
    );
```

## DESCRIPTION

This is an implementation of the least recently used expiry policy.

It provides both an array and a doubly linked list based implementation. See Cache::Ref for a discussion.

## ATTRIBUTES

- size

  The size of the live entries.

- lru\_class

  The class of the LRU list implementation.

## 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.
