From c2641bd8882dfe9addbc3cde9ec3dd64d17199e1 Mon Sep 17 00:00:00 2001 From: 1970Mr Date: Tue, 6 Aug 2024 22:30:00 +0430 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++---- composer.json | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a5b9c05..1466a55 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ php artisan redirect:list ### Controller and Views -Alternatively, you can set up a more customizable CRUD interface for redirects using controllers, requests, routes, and views. The package provides a command to scaffold these components: +You can also set up a more customizable CRUD interface for redirects using controllers, requests, routes, and views. The package provides a command to scaffold these components: ```bash php artisan redirector:install @@ -156,12 +156,16 @@ php artisan redirector:install This command will install the necessary controllers, requests, routes, and views for managing redirects through a web interface. +### Custom Implementation + +Additionally, you can use the Redirect model directly to create, update, or delete redirects within your application code as needed. This approach allows for complete customization of how and where redirects are managed. + ## Caching The package supports two caching methods: -- **Full List**: All active redirects are cached as a single collection. This method is efficient for a small number of redirects but may become inefficient as the number of redirects grows. -- **Single**: Each redirect is cached individually. This method scales better with a large number of redirects but may result in more cache operations. +- **Full List**: All active redirects are cached as a single collection. This method is efficient for a small number of redirects but may become inefficient as the number of redirects grows. Any create, update, or delete operation will reset the entire list cache. +- **Single**: Each redirect is cached individually. This method scales better with a large number of redirects but may result in more cache operations. Only the specific cached item is reset during create, update, or delete operations. You can configure the caching method and TTL in the `config/redirector.php` file to suit your application's needs. @@ -175,4 +179,4 @@ composer test ## License -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. \ No newline at end of file +The MIT License (MIT). Please see [License File](LICENSE.md) for more information. diff --git a/composer.json b/composer.json index 4d63448..7f09cf6 100644 --- a/composer.json +++ b/composer.json @@ -2,6 +2,7 @@ "name": "1970mr/laravel-redirector", "description": "A Laravel package for managing URL redirects easily and efficiently.", "keywords": [ + "Mr1970", "1970Mr", "laravel-redirector", "redirector",