This will only keep the raccoons away from the trash can for several hours. However if you know when the garbage men are coming, you only need an hour or so.

Reapply the bleach as needed. You can use larger amounts when your trash can will be out for a longer period of time—like weekends or holidays where there's a trash-pickup delay.