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.
- Host: GitHub
- URL: https://github.com/sakibweb/phsd
- Owner: sakibweb
- License: mit
- Created: 2024-06-12T19:25:16.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-12T19:27:59.000Z (12 months ago)
- Last Synced: 2024-06-14T01:39:29.287Z (12 months ago)
- Topics: php, php-data-store, php-store-data, sakib, sakiburrahman, sakibweb
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```