Skip to content

HarperDB/full-page-caching

Repository files navigation

HarperDB Full Page/Partial Page Cache Application Template

This repo is a template for implementing full/partial page caching using HarperDB application component.

You can visit the links below to learn more about HarperDB and application components:

Getting Started

Prerequisites

Before cloning this repository, ensure HarperDB is installed on your local machine. If it's not already installed, execute this in a terminal to install HarperDB.

npm i -g harperdb

Installation

  1. Clone this repository to your local machine

git clone <repository-url>

  1. Go to the project directory

cd <repository-directory>

  1. Start HarperDB in your project directory by running

harperdb dev .

Implementing the Caching Solution

To implement caching, you may want to modify the sourcing function located in the resource.js file.

The class is responsible for fetching the web page content and storing it in a cache.

Follow the comments in the code for guidance on how to set it up.

Example

visit the following URL in the browser as an example of accessing a webpage through the cache:

http://localhost:9926/PageCache/solutions/distributed-applications

Learn more about caching with HarperDB visit:

About

Full Page Caching Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published