tokenmemory

package module
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 7 Imported by: 0

README

token-memory

token-memorytoken 模块的内存 Driver 实现(driver: github.com/infrago/token-memory)。

包定位

  • 类型:驱动(Driver)
  • 作用:开发和单进程场景的默认存储实现

主要功能

  • 生命周期:Open/Close(内存实现,无外部连接)
  • payload 存储:SavePayload/LoadPayload/DeletePayload
  • revoke 存储:RevokeToken/RevokeTokenID/Revoked*
  • TTL 过期惰性清理

配置

token-memory 不依赖外部连接,默认无需额外配置。

使用

import _ "github.com/infrago/token-memory"
[token]
driver = "memory"
payload = "token" # token | store | hybrid

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL