F
Flint DartDocs
GitHub

API Reference

Cache

Focused reference for Flint Dart and Flint UI APIs, with copyable examples and practical notes.

Cache

Simple cache stores for memory or filesystem-backed caching.

abstract class CacheStore { set/get/remove/clear }

Contract implemented by cache stores.

MemoryCacheStore({int maxSize = 100})

In-memory cache with optional max size and TTL.

FileCacheStore({String? directory})

File-based cache persisted under cache/ by default.

Example

CodeBlock dart
final cache = MemoryCacheStore();

await cache.set('greeting', 'hello', ttl: Duration(minutes: 10));
final value = await cache.get('greeting');
F
Flint DartBackend framework and Dart UI docs

Build routes, controllers, APIs, docs, and browser UI from one Dart-shaped stack.

Controllers
OpenAPI
Flint UI
Copyright 2024 Flint Dart. Maintained by Eulogia Technologies.
v 1.1.14
MIT License
Built with Dart