---
name: "Cache::Ref::CAR::Base"
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::CAR::Base"
---

# Cache::Ref::CAR::Base(3pm)

base clase for CAR and CART

## NAME

Cache::Ref::CAR::Base - base clase for CAR and CART

## SYNOPSIS

```
    # see CAR or CART
```

## DESCRIPTION

This role provides the common functionality for Cache::Ref::CAR and Cache::Ref::CART.

## METHODS

- get @keys

  Fetch data from the cache

- set $key, $value

  Insert data to the cache

- remove @keys

  Remove entries from the cache. Not in the original CAR algorithm description.

- expire $x

  Removes `$x` elements from the cache (hopefully the most useless ones). The default value for `$x` is 1.

\# ex: set sw=4 et:

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