Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
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
Create a Paclet
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.
W
e
a
k
H
a
s
h
T
a
b
l
e
— create a weak hash table with a label
S
e
t
W
e
a
k
C
a
c
h
e
— store data in a global weak hash table
C
h
e
c
k
W
e
a
k
C
a
c
h
e
▪
C
l
e
a
r
W
e
a
k
C
a
c
h
e
Curiosities
These functions are certainly interesting, but their utility hasn't really been demonstrated yet. The paclet developer would like more examples of use.
S
a
m
e
I
n
s
t
a
n
c
e
Q
— determine if two expressions point to the same data
C
l
e
a
n
u
p
A
f
t
e
r
— perform some action when an expression goes out of scope
C
l
e
a
r
H
i
s
t
o
r
y
— clear any data stored in the interactive session history
C
r
e
a
t
e
R
e
f
e
r
e
n
c
e
— return either a strong or weak reference to an input expression
S
t
r
o
n
g
R
e
f
e
r
e
n
c
e
▪
W
e
a
k
R
e
f
e
r
e
n
c
e
"
"