Installation | laravel-responsecache-rust | Spatie       

 SPATIE  

laravel-responsecache-rust
==========================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-responsecache-rust](https://spatie.be/docs/laravel-responsecache-rust/v1)  Installation

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-responsecache-rust/v1) 

  Installation    
- [ Introduction ](https://spatie.be/docs/laravel-responsecache-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/laravel-responsecache-rust/v1/support-us)
- [ Installation ](https://spatie.be/docs/laravel-responsecache-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/laravel-responsecache-rust/v1/usage)
- [ Configuration and hooks ](https://spatie.be/docs/laravel-responsecache-rust/v1/configuration-and-hooks)
- [ Testing ](https://spatie.be/docs/laravel-responsecache-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/laravel-responsecache-rust/v1/changelog)

 Installation
============

Requires Rust 1.99 or newer. Install Rust using [rustup](https://rustup.rs/). The package is not published to crates.io. Add it by local path or a pinned Git revision:

```
[dependencies]
spatie-laravel-responsecache = { path = "../laravel-responsecache-rust" }
laravel = { package = "laravel-rust", version = "=0.1.0", default-features = false, features = ["database-sqlite"] }
```

Enable the database or Redis features your application actually uses on `laravel`. The middleware uses `laravel::cache::store(name)`; it does not create an independent cache. `memory` is useful for tests but is process-local. Use a shared database or Redis in production.

Configure the named store, its connection, and its application prefix normally. For the database driver, create the framework cache tables in an application migration using `laravel::cache::tables!()`. Migration execution is the application's responsibility. All app processes and invalidation jobs must use the same store, prefix, and response namespace. Do not use failover or read-replica stores.

For shared configuration, container overrides, and the clear command, install `service_provider()`and attach `CacheResponse::new()` to selected routes. Use the native web group for sessions and CSRF protection; put authorization and other hit-time policies outside the cache. See [configuration and hooks](configuration-and-hooks). The provider uses `spatie-laravel-package-tools`, pinned to a reviewed Git revision. Dependencies are public. CI uses `SPATIE_GITHUB_TOKEN` only when that optional secret is set. Never put credentials in Cargo.toml or Cargo.lock. Publishing to crates.io is disabled.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
