LogoRobo.js
Framework

buildAdapter()

Function: buildAdapter()

function buildAdapter<K, V>(baseAdapter): AdapterBuilder<K, V>

Create a new AdapterBuilder with the given base adapter.

Type Parameters

Type ParameterDefault type
K extends stringstring
Vunknown

Parameters

ParameterType
baseAdapterFlashcoreAdapter<K, V>

Returns

AdapterBuilder<K, V>

Example

import { buildAdapter, MemoryAdapter } from 'robo.js/flashcore'

const adapter = buildAdapter(new MemoryAdapter())
  .withCache({ maxSize: 500 })
  .withCompression()
  .build()

On this page