geocoder-php / geocoder-php/Geocoder

Using redis cache plugin alongside phpredis extension

Open
#1,078 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
PHP
Stars
4k
Forks
525
Avg merge
8m
Merged PRs (30d)
1

Description

I'd like to use Geocoder, but have a couple of quick questions first.

  1. Is there any reason why I couldn't use the Redis cache plugin from the Geocode cookbook example alongside the phpredis extension?
    I mean using both in the same file. I wonder if this could cause a bug somehow.

  2. Could I use the phpredis extension for caching instead of a cache plugin?
    I ask this question because I notice in the Redis cache example in the Geocode docs it uses RedisCachePool, but there doesn't seem to be anything similar in phpredis. Maybe that's the default in phpredis, not sure though.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Redis cache plugin example in the Geocode cookbook and the documented RedisCachePool usage. Check how the phpredis extension is intended to relate to that example, then clarify whether both can be used together and whether phpredis can replace the cache plugin.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, redis
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.