Files
docs/mcp/mongo-ops/modules/mongo_ops.cache.repository.json
Vishesh 'ironeagle' Bangotra 49a00351bb docs: collect mongo-ops lib (mkdocstrings) + wiki into separate site subpaths, fix mcp server name, expose port 8007
- mongo-ops now serves /mongo-ops/wiki/ and /mongo-ops/lib/ independently
- add mongo-ops MCP bundle under mcp/mongo-ops
- fix copy-paste mcp server (jwtlib -> mongo_ops) in config.yml
- .drone.yml/Dockerfile: publish port 8007 for mongo-ops MCP
2026-09-14 22:33:34 +05:30

329 lines
15 KiB
JSON

{
"module": "mongo_ops.cache.repository",
"content": {
"path": "mongo_ops.cache.repository",
"docstring": null,
"objects": {
"Generic": {
"name": "Generic",
"kind": "alias",
"path": "mongo_ops.cache.repository.Generic",
"signature": "<bound method Alias.signature of Alias('Generic', 'typing.Generic')>",
"docstring": null
},
"List": {
"name": "List",
"kind": "alias",
"path": "mongo_ops.cache.repository.List",
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
"docstring": null
},
"Optional": {
"name": "Optional",
"kind": "alias",
"path": "mongo_ops.cache.repository.Optional",
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
"docstring": null
},
"TypeVar": {
"name": "TypeVar",
"kind": "alias",
"path": "mongo_ops.cache.repository.TypeVar",
"signature": "<bound method Alias.signature of Alias('TypeVar', 'typing.TypeVar')>",
"docstring": null
},
"Union": {
"name": "Union",
"kind": "alias",
"path": "mongo_ops.cache.repository.Union",
"signature": "<bound method Alias.signature of Alias('Union', 'typing.Union')>",
"docstring": null
},
"ObjectId": {
"name": "ObjectId",
"kind": "alias",
"path": "mongo_ops.cache.repository.ObjectId",
"signature": "<bound method Alias.signature of Alias('ObjectId', 'bson.ObjectId')>",
"docstring": null
},
"BaseDocument": {
"name": "BaseDocument",
"kind": "class",
"path": "mongo_ops.cache.repository.BaseDocument",
"signature": "<bound method Alias.signature of Alias('BaseDocument', 'mongo_ops.models.BaseDocument')>",
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent \nMongoDB documents. It includes automatic handling of the `_id` field \nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
"members": {
"id": {
"name": "id",
"kind": "attribute",
"path": "mongo_ops.cache.repository.BaseDocument.id",
"signature": "<bound method Alias.signature of Alias('id', 'mongo_ops.models.BaseDocument.id')>",
"docstring": null
},
"created_at": {
"name": "created_at",
"kind": "attribute",
"path": "mongo_ops.cache.repository.BaseDocument.created_at",
"signature": "<bound method Alias.signature of Alias('created_at', 'mongo_ops.models.BaseDocument.created_at')>",
"docstring": null
},
"updated_at": {
"name": "updated_at",
"kind": "attribute",
"path": "mongo_ops.cache.repository.BaseDocument.updated_at",
"signature": "<bound method Alias.signature of Alias('updated_at', 'mongo_ops.models.BaseDocument.updated_at')>",
"docstring": null
},
"Config": {
"name": "Config",
"kind": "class",
"path": "mongo_ops.cache.repository.BaseDocument.Config",
"signature": "<bound method Alias.signature of Alias('Config', 'mongo_ops.models.BaseDocument.Config')>",
"docstring": null,
"members": {
"populate_by_name": {
"name": "populate_by_name",
"kind": "attribute",
"path": "mongo_ops.cache.repository.BaseDocument.Config.populate_by_name",
"signature": "<bound method Alias.signature of Alias('populate_by_name', 'mongo_ops.models.BaseDocument.Config.populate_by_name')>",
"docstring": null
},
"arbitrary_types_allowed": {
"name": "arbitrary_types_allowed",
"kind": "attribute",
"path": "mongo_ops.cache.repository.BaseDocument.Config.arbitrary_types_allowed",
"signature": "<bound method Alias.signature of Alias('arbitrary_types_allowed', 'mongo_ops.models.BaseDocument.Config.arbitrary_types_allowed')>",
"docstring": null
},
"json_encoders": {
"name": "json_encoders",
"kind": "attribute",
"path": "mongo_ops.cache.repository.BaseDocument.Config.json_encoders",
"signature": "<bound method Alias.signature of Alias('json_encoders', 'mongo_ops.models.BaseDocument.Config.json_encoders')>",
"docstring": null
},
"json_schema_extra": {
"name": "json_schema_extra",
"kind": "attribute",
"path": "mongo_ops.cache.repository.BaseDocument.Config.json_schema_extra",
"signature": "<bound method Alias.signature of Alias('json_schema_extra', 'mongo_ops.models.BaseDocument.Config.json_schema_extra')>",
"docstring": null
}
}
}
}
},
"BaseRepository": {
"name": "BaseRepository",
"kind": "class",
"path": "mongo_ops.cache.repository.BaseRepository",
"signature": "<bound method Alias.signature of Alias('BaseRepository', 'mongo_ops.repository.BaseRepository')>",
"docstring": "Base repository class combining CRUD operations and collection management.\n\nThis class simplifies repository creation by automatically obtaining the \ndatabase connection and collection instance.\n\nAttributes:\n collection_name: The name of the collection managed by this repository.",
"members": {
"collection_name": {
"name": "collection_name",
"kind": "attribute",
"path": "mongo_ops.cache.repository.BaseRepository.collection_name",
"signature": "<bound method Alias.signature of Alias('collection_name', 'mongo_ops.repository.BaseRepository.collection_name')>",
"docstring": null
}
}
},
"CacheBackend": {
"name": "CacheBackend",
"kind": "class",
"path": "mongo_ops.cache.repository.CacheBackend",
"signature": "<bound method Alias.signature of Alias('CacheBackend', 'mongo_ops.cache.backend.CacheBackend')>",
"docstring": null,
"members": {
"get": {
"name": "get",
"kind": "function",
"path": "mongo_ops.cache.repository.CacheBackend.get",
"signature": "<bound method Alias.signature of Alias('get', 'mongo_ops.cache.backend.CacheBackend.get')>",
"docstring": null
},
"set": {
"name": "set",
"kind": "function",
"path": "mongo_ops.cache.repository.CacheBackend.set",
"signature": "<bound method Alias.signature of Alias('set', 'mongo_ops.cache.backend.CacheBackend.set')>",
"docstring": null
},
"delete": {
"name": "delete",
"kind": "function",
"path": "mongo_ops.cache.repository.CacheBackend.delete",
"signature": "<bound method Alias.signature of Alias('delete', 'mongo_ops.cache.backend.CacheBackend.delete')>",
"docstring": null
},
"exists": {
"name": "exists",
"kind": "function",
"path": "mongo_ops.cache.repository.CacheBackend.exists",
"signature": "<bound method Alias.signature of Alias('exists', 'mongo_ops.cache.backend.CacheBackend.exists')>",
"docstring": null
},
"clear_pattern": {
"name": "clear_pattern",
"kind": "function",
"path": "mongo_ops.cache.repository.CacheBackend.clear_pattern",
"signature": "<bound method Alias.signature of Alias('clear_pattern', 'mongo_ops.cache.backend.CacheBackend.clear_pattern')>",
"docstring": null
},
"get_stats": {
"name": "get_stats",
"kind": "function",
"path": "mongo_ops.cache.repository.CacheBackend.get_stats",
"signature": "<bound method Alias.signature of Alias('get_stats', 'mongo_ops.cache.backend.CacheBackend.get_stats')>",
"docstring": null
},
"initialize": {
"name": "initialize",
"kind": "function",
"path": "mongo_ops.cache.repository.CacheBackend.initialize",
"signature": "<bound method Alias.signature of Alias('initialize', 'mongo_ops.cache.backend.CacheBackend.initialize')>",
"docstring": null
},
"shutdown": {
"name": "shutdown",
"kind": "function",
"path": "mongo_ops.cache.repository.CacheBackend.shutdown",
"signature": "<bound method Alias.signature of Alias('shutdown', 'mongo_ops.cache.backend.CacheBackend.shutdown')>",
"docstring": null
}
}
},
"CacheConfig": {
"name": "CacheConfig",
"kind": "class",
"path": "mongo_ops.cache.repository.CacheConfig",
"signature": "<bound method Alias.signature of Alias('CacheConfig', 'mongo_ops.cache.config.CacheConfig')>",
"docstring": null,
"members": {
"enabled": {
"name": "enabled",
"kind": "attribute",
"path": "mongo_ops.cache.repository.CacheConfig.enabled",
"signature": "<bound method Alias.signature of Alias('enabled', 'mongo_ops.cache.config.CacheConfig.enabled')>",
"docstring": null
},
"backend": {
"name": "backend",
"kind": "attribute",
"path": "mongo_ops.cache.repository.CacheConfig.backend",
"signature": "<bound method Alias.signature of Alias('backend', 'mongo_ops.cache.config.CacheConfig.backend')>",
"docstring": null
},
"redis_client": {
"name": "redis_client",
"kind": "attribute",
"path": "mongo_ops.cache.repository.CacheConfig.redis_client",
"signature": "<bound method Alias.signature of Alias('redis_client', 'mongo_ops.cache.config.CacheConfig.redis_client')>",
"docstring": null
},
"default_ttl": {
"name": "default_ttl",
"kind": "attribute",
"path": "mongo_ops.cache.repository.CacheConfig.default_ttl",
"signature": "<bound method Alias.signature of Alias('default_ttl', 'mongo_ops.cache.config.CacheConfig.default_ttl')>",
"docstring": null
},
"max_entries": {
"name": "max_entries",
"kind": "attribute",
"path": "mongo_ops.cache.repository.CacheConfig.max_entries",
"signature": "<bound method Alias.signature of Alias('max_entries', 'mongo_ops.cache.config.CacheConfig.max_entries')>",
"docstring": null
},
"key_prefix": {
"name": "key_prefix",
"kind": "attribute",
"path": "mongo_ops.cache.repository.CacheConfig.key_prefix",
"signature": "<bound method Alias.signature of Alias('key_prefix', 'mongo_ops.cache.config.CacheConfig.key_prefix')>",
"docstring": null
},
"cleanup_interval": {
"name": "cleanup_interval",
"kind": "attribute",
"path": "mongo_ops.cache.repository.CacheConfig.cleanup_interval",
"signature": "<bound method Alias.signature of Alias('cleanup_interval', 'mongo_ops.cache.config.CacheConfig.cleanup_interval')>",
"docstring": null
}
}
},
"decode_value": {
"name": "decode_value",
"kind": "function",
"path": "mongo_ops.cache.repository.decode_value",
"signature": "<bound method Alias.signature of Alias('decode_value', 'mongo_ops.cache.in_memory.decode_value')>",
"docstring": null
},
"encode_value": {
"name": "encode_value",
"kind": "function",
"path": "mongo_ops.cache.repository.encode_value",
"signature": "<bound method Alias.signature of Alias('encode_value', 'mongo_ops.cache.in_memory.encode_value')>",
"docstring": null
},
"T": {
"name": "T",
"kind": "attribute",
"path": "mongo_ops.cache.repository.T",
"signature": null,
"docstring": null
},
"CachedBaseRepository": {
"name": "CachedBaseRepository",
"kind": "class",
"path": "mongo_ops.cache.repository.CachedBaseRepository",
"signature": "<bound method Class.signature of Class('CachedBaseRepository', 14, 92)>",
"docstring": null,
"members": {
"get_by_id": {
"name": "get_by_id",
"kind": "function",
"path": "mongo_ops.cache.repository.CachedBaseRepository.get_by_id",
"signature": "<bound method Function.signature of Function('get_by_id', 33, 48)>",
"docstring": null
},
"create": {
"name": "create",
"kind": "function",
"path": "mongo_ops.cache.repository.CachedBaseRepository.create",
"signature": "<bound method Function.signature of Function('create', 50, 56)>",
"docstring": null
},
"update": {
"name": "update",
"kind": "function",
"path": "mongo_ops.cache.repository.CachedBaseRepository.update",
"signature": "<bound method Function.signature of Function('update', 58, 67)>",
"docstring": null
},
"delete": {
"name": "delete",
"kind": "function",
"path": "mongo_ops.cache.repository.CachedBaseRepository.delete",
"signature": "<bound method Function.signature of Function('delete', 69, 74)>",
"docstring": null
},
"warm_cache": {
"name": "warm_cache",
"kind": "function",
"path": "mongo_ops.cache.repository.CachedBaseRepository.warm_cache",
"signature": "<bound method Function.signature of Function('warm_cache', 76, 87)>",
"docstring": null
},
"invalidate_cache": {
"name": "invalidate_cache",
"kind": "function",
"path": "mongo_ops.cache.repository.CachedBaseRepository.invalidate_cache",
"signature": "<bound method Function.signature of Function('invalidate_cache', 89, 92)>",
"docstring": null
}
}
}
}
}
}