https://github.com/feather-framework/feather-storage-driver-memory
https://github.com/feather-framework/feather-storage-driver-memory
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/feather-framework/feather-storage-driver-memory
- Owner: feather-framework
- License: mit
- Created: 2023-11-18T17:39:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T09:18:54.000Z (over 1 year ago)
- Last Synced: 2024-10-28T09:45:16.408Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Feather Storage Driver Memory
A testing purpose only in-memory storage driver for the Feather CMS storage component.
## Getting started
⚠️ This repository is a work in progress, things can break until it reaches v1.0.0.
Use at your own risk.
### Adding the dependency
To add a dependency on the package, declare it in your `Package.swift`:
```swift
.package(url: "https://github.com/feather-framework/feather-storage-driver-memory", .upToNextMinor(from: "0.4.0")),
```
and to your application target, add `FeatherStorage` to your dependencies:
```swift
.product(name: "FeatherStorageDriverMemory", package: "feather-storage-driver-memory")
```
Example `Package.swift` file with `FeatherStorage` as a dependency:
```swift
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "my-application",
dependencies: [
.package(url: "https://github.com/feather-framework/feather-storage-driver-memory", .upToNextMinor(from: "0.4.0")),
],
targets: [
.target(name: "MyApplication", dependencies: [
.product(name: "FeatherStorageDriverMemory", package: "feather-storage-driver-memory")
]),
.testTarget(name: "MyApplicationTests", dependencies: [
.target(name: "MyApplication"),
]),
]
)
```