- or download this
$one = MyObject->get(123);
$two = MyObject->get(123);
refaddr($one) == refaddr($two)
- or download this
-> the in memory cache
-> memcached
-> the DB
- or download this
GET doc 123 -> returns version 6
SEARCH for doc 123 -> returns version 5
- or download this
$a = get -> version 1
$b = search -> version 1
- or download this
$a = get -> version 1
$b = search -> version 1
$a->change()
$a->save() -> version 2
- or download this
$a = get -> version 2
$b = search -> version 1
- or download this
$a = get -> version 1
$a->change()
$b = search -> version 1
- or download this
$a = get -> version 1
$a->change()
$b = search -> version 2
- or download this
my ($class,$id,$version,$data) = @_;
if (my $cached = $cache->{$id}) {
...
}
return $cache->{$id} = $class->new($data);