Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

WeakCache

Guides

  • Weak Cache Functions

Symbols

  • CheckWeakCache
  • CleanupAfter
  • ClearHistory
  • ClearWeakCache
  • CreateReference
  • SameInstanceQ
  • SetWeakCache
  • StrongReference
  • WeakHashTable
  • WeakReference
Weak Cache Functions
These functions allow you to store precomputed data in a fast lookup table that will automatically delete the data when it is no longer needed.
Weak caching
These are the main functions that users and developers will need.
WeakHashTable
— create a weak hash table with a label
SetWeakCache
— store data in a global weak hash table
CheckWeakCache
 ▪
ClearWeakCache
Curiosities
These functions are certainly interesting, but their utility hasn't really been demonstrated yet. The paclet developer would like more examples of use.
SameInstanceQ
— determine if two expressions point to the same data
CleanupAfter
— perform some action when an expression goes out of scope
ClearHistory
— clear any data stored in the interactive session history
CreateReference
— return either a strong or weak reference to an input expression
StrongReference
 ▪
WeakReference
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com