Algorithm::SpatialIndex::Storage::Redis - Redis storage backend
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 }, );
Inherits from Algorithm::SpatialIndex::Storage.
On top of the methods required by Algorithm::SpatialIndex::Storage, this storage backend implements the following:
Algorithm::SpatialIndex::Storage
Deletes all related spatial-index data from Redis.
Steffen Mueller, <smueller@cpan.org>
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.
To install Algorithm::SpatialIndex::Storage::Redis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::SpatialIndex::Storage::Redis
CPAN shell
perl -MCPAN -e shell install Algorithm::SpatialIndex::Storage::Redis
For more information on module installation, please visit the detailed CPAN module installation guide.