An open API service indexing awesome lists of open source software.

https://github.com/sakibweb/phsd

PHSD is a PHP Library for handling data storage with expiration.
https://github.com/sakibweb/phsd

php php-data-store php-store-data sakib sakiburrahman sakibweb

Last synced: 3 months ago
JSON representation

PHSD is a PHP Library for handling data storage with expiration.

Awesome Lists containing this project

README

        

# PHSD
PHSD is a PHP Library for handling data storage with expiration.
```
// Example usage:
PHSD::add('name', 'John', 5); // Add data with 5-minute expiration
print PHSD::get('name'); // Should print 'John'

PHSD::update('name', 'Jane', 10); // Update data with 10-minute expiration
print PHSD::get('name'); // Should print 'Jane'

PHSD::remove('name'); // Remove data
print PHSD::get('name'); // Should print null
```