logologo
Start
Handbuch
Entwicklung
Plugins
API
Startseite
English
简体中文
日本語
한국어
Español
Português
Deutsch
Français
Русский
Start
Handbuch
Entwicklung
Plugins
API
Startseite
logologo
API-Überblick

@nocobase/auth

AuthManager
Auth
BaseAuth

@nocobase/cache

CacheManager
Cache

@nocobase/cli

NocoBase CLI
Globale Umgebungsvariablen

@nocobase/client

Anwendung
Plugin

@nocobase/database

Sammlung
Feld

interfaces

BaseInterface
Filter-Operatoren

RelationRepository

BelongsToManyRepository
belongs-to-repository
HasManyRepository
HasOneRepository
Repository

shared

create-options
destroy-options
find-one
find-options
transaction
update-options

@nocobase/data-source-manager

DataSourceManager
Datenquelle (abstrakt)
ICollectionManager
ICollection
IField
IModel
IRepository

@nocobase/flow-engine

DataSourceManager
FlowContext
FlowEngine
FlowModel
Workflow-Ressource

@nocobase/logger

Logger

@nocobase/server

AppCommand
Anwendung
AuditManager
Kontext
Migration
Plugin

@nocobase/sdk

Auth
Speicher
Previous PageAuth
KI-Übersetzungshinweis

Diese Dokumentation wurde automatisch von KI übersetzt.

#Speicher

#Überblick

Die Storage-Klasse dient der clientseitigen Informationsspeicherung und verwendet standardmäßig localStorage.

#Grundlegende Verwendung

export abstract class Storage {
  abstract clear(): void;
  abstract getItem(key: string): string | null;
  abstract removeItem(key: string): void;
  abstract setItem(key: string, value: string): void;
}

export class CustomStorage extends Storage {
  // ...
}

#Klassenmethoden

#setItem()

Speichert Inhalte.

#Signatur

  • setItem(key: string, value: string): void

#getItem()

Ruft Inhalte ab.

#Signatur

  • getItem(key: string): string | null

#removeItem()

Entfernt Inhalte.

#Signatur

  • removeItem(key: string): void

#clear()

Löscht alle Inhalte.

#Signatur

  • clear(): void