sharedmemory-model
OfficialUse SharedMemoryModel for cached Django models.
Software Engineering#caching#orm#query-optimization#django#foreign-keys#sharedmemorymodel#identity-map
AuthorArx-Game
Version1.0.0
Installs0
System Documentation
What problem does it solve?
All concrete Django models in this repo should use Evennia's SharedMemoryModel, an identity map that caches FK walks and persists a Python object after the first load. This skill encodes usage rules and the identity-map caching discipline to prevent rebuilding complex caching or query-batching infrastructure.
Core Features & Use Cases
- Enforces universal use of SharedMemoryModel for all concrete Django models.
- Ensures correct import path: from evennia.utils.idmapper.models import SharedMemoryModel.
- Prevents unsafe imports that trigger Django setup during import, and guides when to use SharedMemoryModel for caching-heavy or read-mostly data.
- Use Case: optimize lookups on high-traffic models by avoiding repeated database hits through identity-mapped instances.
Quick Start
Migrate all Django models to SharedMemoryModel and start using its identity-map caching.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sharedmemory-model Download link: https://github.com/Arx-Game/arxii/archive/main.zip#sharedmemory-model Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.