Connect to Readyset Cache
Readyset Cache sits between your application and your database. When you start Readyset Cache, it'll connect to your database and, for deep caching, take an initial snapshot of your tables and replicate changes to keep cached results up to date. (Shallow, TTL-based caches are served without this snapshot.) You'll need to configure your application to connect to Readyset Cache so that Readyset Cache can see the various SQL queries your application uses. By default, all queries are proxied to your database.
In order to make use of Readyset Cache, you'll need to configure it to cache specific queries.
You can connect to Readyset Cache directly using your database's shell, such as psql or the mysql
client. From there, you can see any queries that Readyset Cache has seen and which ones are cacheable.
Follow the guide for your database to configure it and connect:
To point your application at Readyset Cache instead of your database, see Connect an application via an ORM or the Connect Readyset Cache with Ruby on Rails walkthrough. If your database is hosted on a managed service, see Cloud Databases.
Once connected, you can view and cache queries: