@hackage / shikumi-cache-postgres

Postgres-backed shikumi cache (EP-6)

Latest0.1.0.0

About

Metadata

  • Last updated , by shinzui
  • License BSD-3-Clause
  • Maintained by: nadeem@gmail.com

  • Lottery factor: 1

Links

Installation

Readme

A PostgreSQL backend for shikumi's Cache effect (EP-6), in a separate package so the hasql client (and libpq) is only pulled in when used. Entries live in a shikumi_cache(key text primary key, value jsonb, stored_at timestamptz) table, upserted on conflict; the value is the JSON of a CachedResponse (the Response round-trip comes from shikumi-cache's Shikumi.Cache.ResponseJSON). The test uses ephemeral-pg to spin up a throwaway server, so it needs no external database.