Comments (12)
Sure, actually I prefer CacheAdapter
:)
from geocoder.
What do you prefer?
from geocoder.
I prefer an CacheProvider, which you can inject a CacheAdapter instance.
e.g.:
<?php
public function __construct(CacheInterface $cache, ProviderInterface $provider) {
$this->_cache = $cache;
$this->_provider = $provider;
}
from geocoder.
Can you be more precise ?
from geocoder.
Sure.
I prefer a CacheProvider, which you can inject an CacheAdapter (like MemcachedAdapter) and a another Provider (like YahooProvider). The CacheProvider tried to load the result from the CacheAdapter. If that not matched then load from the another Provider and store the result into the Cache.
from geocoder.
Oh, sweet!
Would you work on it ?
from geocoder.
Sure, I will work on it this evening.
from geocoder.
Fantastic!
from geocoder.
Would you remove the CacheLayer in the Geocoder class?
from geocoder.
No, not for the moment. Let's see your CacheProvider.
Oh, if you want, you can rename the Cache
namespace to CacheAdapter
(that was I understood the first time)
from geocoder.
Oh, do you have a use case for this adapter ?
I mean why dont you want to use the cache layer by registering a cache adapter ?
from geocoder.
I think, it's just not transparent and flexible enough.
And i would tried to keep the GeocoderClass as slim as possible.
from geocoder.
Related Issues (20)
- Clean wrong tag/release created by @JaZo HOT 5
- Unable to install providers HOT 4
- Always get the address id HOT 3
- Arcgis Provider HOT 3
- Static Maps HOT 1
- [Nominatim] Neighbourhood field HOT 1
- [Google] Administrative level 1 is defined twice HOT 4
- Serialization of 'Closure' is not allowed HOT 7
- Store Address In Database HOT 10
- Equivalent to NoResult Exception when updating from older versions HOT 2
- sublocality allways null HOT 8
- Tag new release HOT 1
- Abandoned dependency php-http/message-factory
- Reverse Geocode failure - Here maps - Undefined index: LocationId HOT 2
- Error installing geocoder-php/nominatim-provider HOT 8
- Documentation to create custom providers
- Google invalid response HOT 4
- Issues with PHP 8.1 during installation HOT 2
- Take exception message from provider response in case of statusCode >= 400
- Tag new release HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geocoder.