{
  "slug": "content-addressed-storage",
  "term": "Content-addressed storage",
  "aliases": [
    "Content-addressable storage",
    "CAS"
  ],
  "definition": "Content-addressed storage retrieves data using identifiers derived from its content under specified encoding and hashing rules.",
  "note": "A content address names a representation rather than a storage location. Venti used block fingerprints for lookup, duplicate coalescing and read verification. Its lookup key paired the fingerprint with an 8-bit client-supplied type; the server did not interpret that type's data format. Its 2002 SHA-1 assumptions are historical, not a current security recommendation. [venti]\n\nGit hashes an object header containing type and byte length, a NUL byte, and the payload. A blob omits its filename; a tree associates names and modes with object IDs. Equal file bytes therefore need not mean equal directory objects. [git-objects]\n\nChunking chooses the bytes to identify; content addressing names the resulting representation. IPFS root identifiers also depend on chunking, graph layout, codec and hash choices. Identical file bytes alone do not fix one identifier across different import settings. [ipfs-address]\n\nThe acronym CAS also means compare-and-swap, an unrelated conditional-update operation.",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "A retained identifier does not retain the addressed data. IPFS pinning protects against a node's garbage collection, not every cause of unavailability.",
      "citationIds": [
        "ipfs-persistence"
      ]
    },
    {
      "text": "Deduplication benefits depend on repeated content and system policy; a content address alone gives no physical-space saving or restore-speed estimate.",
      "citationIds": [
        "venti"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-18",
  "related": [
    "content-identifier",
    "content-defined-chunking",
    "deduplication",
    "cryptographic-hash",
    "merkle-tree",
    "compare-and-swap"
  ],
  "citations": [
    {
      "id": "git-objects",
      "title": "Git Book: Git Objects, object storage and tree entries",
      "url": "https://git-scm.com/book/en/v2/Git-Internals-Git-Objects",
      "accessed": "2026-11-18"
    },
    {
      "id": "ipfs-address",
      "title": "IPFS documentation: content addressing, root blocks and import parameters",
      "url": "https://docs.ipfs.tech/concepts/content-addressing/",
      "accessed": "2026-11-18"
    },
    {
      "id": "ipfs-persistence",
      "title": "IPFS documentation: persistence, garbage collection and pinning",
      "url": "https://docs.ipfs.tech/concepts/persistence/",
      "accessed": "2026-11-18"
    },
    {
      "id": "venti",
      "title": "Quinlan and Dorward. Venti: a new approach to archival storage. FAST 2002, sections 3 and 7.",
      "url": "https://www.usenix.org/legacy/event/fast02/quinlan/quinlan_html/index.html",
      "accessed": "2026-11-18"
    }
  ],
  "provenance": [
    "Primary-source synthesis; historical Venti properties are not universal requirements of content-addressed systems. No native IPFS or Venti experiment was run."
  ]
}
