Skip to content

Redis as backend store. #9

@ankushs92

Description

@ankushs92

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 :

final Jedis jedis = new Jedis(); //Blah blah,however you want to configure Jedis.
//Pass it to the constructor.Now the DbIpClient knows that Redis is the primary storage.
final DbIpClient dbIpClient = new DbIpClient(PATH_TO_DB_IP_FILE,jedis);
//Retrieves from Redis
final GeoEntity geoEntity = dbIpClient.lookup("11.22.11.11); 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions