wp transient

Manage transients.

GitHub Issues

EXAMPLES

# Set transient.
$ wp transient set sample_key "test data" 3600
Success: Transient added.

# Get transient.
$ wp transient get sample_key
test data

# Delete transient.
$ wp transient delete sample_key
Success: Transient deleted.

# Delete expired transients.
$ wp transient delete --expired
Success: 12 expired transients deleted from the database.

# Delete all transients.
$ wp transient delete --all
Success: 14 transients deleted from the database.

SUBCOMMANDS

Name Description
wp transient delete

Delete a transient value.

wp transient get

Get a transient value.

wp transient set

Set a transient value.

wp transient type

Determine type of transients implementation.