Something went wrong. Try again.
Resolve AT Protocol DIDs, handles, and schemas with intelligent caching for Laravel
Something went wrong. Try again.
815 B · 42 lines
PHP
at dev
12345678910111213141516171819202122232425262728293031323334353637383940414243<?php
namespace SocialDept\AtpResolver\Contracts;
interface CacheStore{ /** * Get a cached value. * * @param string $key * @return mixed */ public function get(string $key): mixed;
/** * Store a value in the cache. * * @param string $key * @param mixed $value * @param int $ttl Time to live in seconds */ public function put(string $key, mixed $value, int $ttl): void;
/** * Check if a key exists in the cache. * * @param string $key */ public function has(string $key): bool;
/** * Remove a value from the cache. * * @param string $key */ public function forget(string $key): void;
/** * Clear all cached values. */ public function flush(): void;}