Back

[Implementation] Redis Adapter

  • 0
  • Databases
  • General
Arnab20k(Gravdestroyer)
17 Oct, 2023, 03:15

I think this implementation will work? The Adaptor abstract class is implementing the list method which is basically returning a list of databases.

Redis is having only 0 to 15 number databases by default and to change databse number we need to update the .conf file and also restart the server So I think using a hashset will be a great choice instead So the ultimate the lookup will look like

TypeScript
redis instance ={
    databaseName:{
           tableName:{}
     }
}

And for creating of the collections I am reffering to the mongodb adapter cause both redis and mongodb are schemaless. So some among them will be common

TL;DR
The user is discussing implementing a Redis Adapter. They mention that the implementation should return the same format. The user suggests using a hashset to handle databases in Redis instead of updating the .conf file and restarting the server. They also mention that the MongoDB adapter can be used as a reference for creating collections since Redis and MongoDB are both schemaless.
Drake
18 Oct, 2023, 18:57

uhhh the point is they need to return the same format

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more