I have kept shrimp alive for near to a month, they are usually used up by then, but there are a few things you MUST do. Areator 24/7
Never freshen up the water with town or tank water as the p/h levels are way out and you will kill them real quickly.
It MUST be creek water. I remove and replace one third or more of the water around every 3-4 days. I use a piece of poly pipe and siphon the water out into a bucket.
Also I feed mine. Goldfish food (granuals), it is around the size of sand.
Another way to kill them is to leave a surplus of food on the bottom of the tank.
So what I do is feed them a sprinkle of food when I am about to change the water.
You will see them eating and when they have had enough they leave the rest.
This is when I change the water, siphon out the surplus granuals plus their droppings, add new water and they are right for a while.
I dont put lobies in with the shrimp as they like to crush them as they swim past.
I do throw in pieces of shade cloth, poly pipe and whatever they can hide in as they seem to be happy in this situation.
I use an areator to transport them to the fishing grounds but once there I just freshen the water every half hour.
One more thing, I found that they can jump out of my fish tank so a piece of mesh over the top is important.
If I have missed something then just ask. Good luck.
Regards Gordon