Skip to content

grosser/amend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data amend service ... for when you have multiple servers that need to share something. Not race-condition safe, but it kinda works :)

curl -X POST -d $'foo\n' https://amend.onrenderapp.com/amend/some_random_key
# => Amended key some_random_key which was 0 bytes with 4 bytes

curl -X POST -d $'bar\n' https://amend.onrenderapp.com/amend/some_random_key
# => Amended key some_random_key which was 4 bytes with 4 bytes

curl https://amend.onrender.com/amend/some_random_key
# => foo
# => bar

for bigger things, write them to a file and upload the file content:

curl -X POST --data-binary @data.log https://amend.onrenderapp.com/amend/some_random_key

up to ~1MB and as long as the cache holds ... for infinite cache use https://github.com/anamartinez/large_object_store

Testing

Memcached: rake test Redis: REDIS_SERVERS=redis:https://127.0.0.1:6379 rake

Author

Michael Grosser
[email protected]
License: MIT

About

Amendable cache as service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages