NAME

Algorithm::SpatialIndex::Storage::Redis - Redis storage backend

SYNOPSIS

use Algorithm::SpatialIndex;
my $idx = Algorithm::SpatialIndex->new(
  storage => 'Redis',
  redis => {
    conn => $redisconn, # or Redis.pm ->new parameters
    prefix => "my_redis_key_prefix",
    # Optional:
    encoder => $sereal_encoder, # or hashref with options
    decoder => $sereal_decoder, # or hashref with options
  },
);

DESCRIPTION

Inherits from Algorithm::SpatialIndex::Storage.

METHODS

On top of the methods required by Algorithm::SpatialIndex::Storage, this storage backend implements the following:

remove_all

Deletes all related spatial-index data from Redis.

AUTHOR

Steffen Mueller, <smueller@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Steffen Mueller

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.