### Install SharedPreferences.jl Source: https://github.com/raphasampaio/sharedpreferences.jl/blob/main/README.md Demonstrates how to add the SharedPreferences.jl package to a Julia environment using the package manager. ```julia julia> ] add SharedPreferences ``` -------------------------------- ### Example Usage of SharedPreferences.jl Source: https://github.com/raphasampaio/sharedpreferences.jl/blob/main/README.md Shows how to create an encrypted SharedPreferences instance, store various data types (string, integer, float, boolean, array), and retrieve them. It highlights the use of `InstanceEncrypted` and the `set!` and `get` functions. ```julia using SharedPreferences # encryption key for secure storage key = "JjL9kX9BRNsHa6ykI8s8eV9ZX2Wb1Fsf" # create an encrypted instance of SharedPreferences instance = SharedPreferences.InstanceEncrypted(key) # store data of various types set!(instance, "string", "value") set!(instance, "integer", 42) set!(instance, "float", 3.14) set!(instance, "boolean", true) set!(instance, "array", [1, 2, 3]) # retrieve stored data instance = SharedPreferences.InstanceEncrypted(key) stored_string = get(instance, "string") stored_integer = get(instance, "integer") stored_float = get(instance, "float") stored_boolean = get(instance, "boolean") stored_array = get(instance, "array") println("Stored string: ", stored_string) println("Stored integer: ", stored_integer) println("Stored float: ", stored_float) println("Stored boolean: ", stored_boolean) println("Stored array: ", stored_array) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.