You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have the Java's TreeMap as the repository. This is the fastest possible solution,since no network IO is involved .
We can also have Redis as the backend store.
How I think we should do it :
finalJedisjedis = newJedis(); //Blah blah,however you want to configure Jedis.//Pass it to the constructor.Now the DbIpClient knows that Redis is the primary storage.finalDbIpClientdbIpClient = newDbIpClient(PATH_TO_DB_IP_FILE,jedis);
//Retrieves from RedisfinalGeoEntitygeoEntity = dbIpClient.lookup("11.22.11.11);
The text was updated successfully, but these errors were encountered:
I would like to rewrite the DbIpRepository, is that possible to make the repository as a variable of ResourceImporter and GeoEntityLookupService so that users can set a self defined repository
Currently we have the Java's TreeMap as the repository. This is the fastest possible solution,since no network IO is involved .
We can also have Redis as the backend store.
How I think we should do it :
The text was updated successfully, but these errors were encountered: