package app

import (
	
)

type cacheItem struct {
	// The request path.
	Path string

	// The response content type.
	ContentType string

	// The response content encoding.
	ContentEncoding string

	// The response body.
	Body []byte
}

func ( cacheItem) () int {
	return len(.Body)
}

type memoryCache struct {
	mu    sync.RWMutex
	items map[string]cacheItem
}

func newMemoryCache( int) *memoryCache {
	return &memoryCache{
		items: make(map[string]cacheItem, ),
	}
}

func ( *memoryCache) ( cacheItem) {
	.mu.Lock()
	.items[.Path] = 
	.mu.Unlock()
}

func ( *memoryCache) ( string) (cacheItem, bool) {
	.mu.Lock()
	,  := .items[]
	.mu.Unlock()
	return , 
}