Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
cache.go670 B
package profile_cache import ( "context" "time" "github.com/rs/xid" "github.com/Southclaws/storyden/app/resources/cachecontrol" "github.com/Southclaws/storyden/internal/ent" "github.com/Southclaws/storyden/internal/ent/account" ) type Cache struct { db *ent.Client } func New(db *ent.Client) *Cache { return &Cache{ db: db, } } func (c *Cache) IsNotModified(ctx context.Context, cq cachecontrol.Query, id xid.ID) bool { notModified := cq.NotModified(func() *time.Time { r, err := c.db.Account.Query().Select(account.FieldUpdatedAt).Where(account.ID(id)).Only(ctx) if err != nil { return nil } return &r.UpdatedAt }) return notModified }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server